summaryrefslogtreecommitdiffstats
path: root/fs/cachefiles/xattr.c
diff options
context:
space:
mode:
authorJeffle Xu <jefflexu@linux.alibaba.com>2022-03-30 17:47:59 +0800
committerDavid Howells <dhowells@redhat.com>2022-04-08 23:32:30 +0100
commitea5dc046127e857a7873ae55fd57c866e9e86fb2 (patch)
tree0ccfe88a5a3c8833d16d192ece9e55bb3261e7b4 /fs/cachefiles/xattr.c
parent42e7a03d3badebd4e70aea5362d6914dfc7c220b (diff)
downloadlinux-ea5dc046127e857a7873ae55fd57c866e9e86fb2.tar.bz2
cachefiles: unmark inode in use in error path
Unmark inode in use if error encountered. If the in-use flag leakage occurs in cachefiles_open_file(), Cachefiles will complain "Inode already in use" when later another cookie with the same index key is looked up. If the in-use flag leakage occurs in cachefiles_create_tmpfile(), though the "Inode already in use" warning won't be triggered, fix the leakage anyway. Reported-by: Gao Xiang <hsiangkao@linux.alibaba.com> Fixes: 1f08c925e7a3 ("cachefiles: Implement backing file wrangling") Signed-off-by: Jeffle Xu <jefflexu@linux.alibaba.com> Signed-off-by: David Howells <dhowells@redhat.com> cc: linux-cachefs@redhat.com Link: https://listman.redhat.com/archives/linux-cachefs/2022-March/006615.html # v1 Link: https://listman.redhat.com/archives/linux-cachefs/2022-March/006618.html # v2
Diffstat (limited to 'fs/cachefiles/xattr.c')
0 files changed, 0 insertions, 0 deletions