summaryrefslogtreecommitdiff
path: root/fs/cifs/cifsproto.h
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2022-07-18 22:06:24 +0300
committerSteve French <stfrench@microsoft.com>2022-08-01 09:34:44 +0300
commitc6f62f81b488d00afaa86bae26c6ce9ab12c709e (patch)
treecc6c26751f0ce276a15e4e79a165689be7cbb440 /fs/cifs/cifsproto.h
parent89e42f49ef58bf5601ce452683aad1cb1088878f (diff)
downloadlinux-c6f62f81b488d00afaa86bae26c6ce9ab12c709e.tar.xz
cifs: Fix memory leak when using fscache
If we hit the 'index == next_cached' case, we leak a refcount on the struct page. Fix this by using readahead_folio() which takes care of the refcount for you. Fixes: 0174ee9947bd ("cifs: Implement cache I/O by accessing the cache directly") Cc: David Howells <dhowells@redhat.com> Cc: Jeff Layton <jlayton@kernel.org> Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/cifsproto.h')
0 files changed, 0 insertions, 0 deletions