Matthew Wilcox (Oracle) c6f62f81b4 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>
2022-08-01 01:34:44 -05:00
..
2021-06-20 21:28:17 -05:00
2022-08-01 01:34:44 -05:00
2022-08-01 01:34:44 -05:00
2020-06-01 00:10:18 -05:00
2022-01-19 11:21:08 -06:00
2022-05-25 07:41:22 -05:00
2022-05-25 07:41:22 -05:00
2022-08-01 01:34:44 -05:00
2022-01-19 11:21:08 -06:00
2022-05-23 20:24:12 -05:00
2019-01-24 09:37:33 -06:00
2022-06-16 18:07:10 -05:00
2021-04-25 16:28:23 -05:00