]> git.baikalelectronics.ru Git - kernel.git/commit
cachefiles: narrow the scope of flushed requests when releasing fd
authorJia Zhu <zhujia.zj@bytedance.com>
Thu, 9 Jun 2022 08:54:10 +0000 (16:54 +0800)
committerDavid Howells <dhowells@redhat.com>
Tue, 5 Jul 2022 15:12:21 +0000 (16:12 +0100)
commitfe8bec72e78b3c272376a2178cb526fe7beb0cb8
tree2f0f615fe963c85c974034675921d6314881ea4d
parent4628decc4a5b96803c1a0d27acd012f2086fc67b
cachefiles: narrow the scope of flushed requests when releasing fd

When an anonymous fd is released, only flush the requests
associated with it, rather than all of requests in xarray.

Fixes: 9b5bcc141c7b ("cachefiles: implement on-demand read")
Signed-off-by: Jia Zhu <zhujia.zj@bytedance.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: Jeffle Xu <jefflexu@linux.alibaba.com>
Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Link: https://listman.redhat.com/archives/linux-cachefs/2022-June/006937.html
fs/cachefiles/ondemand.c