diff options
author | David Howells <dhowells@redhat.com> | 2013-09-04 19:10:39 +0200 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2013-09-18 17:17:03 +0200 |
commit | 54afa99057ee2ffd3df0f5e891298bbbb65ea63c (patch) | |
tree | bbe235d0310023e4c4eace892b1de10faee13c3f /block | |
parent | Merge branch 'fixes' of git://git.kernel.org/pub/scm/virt/kvm/kvm (diff) | |
download | linux-54afa99057ee2ffd3df0f5e891298bbbb65ea63c.tar.xz linux-54afa99057ee2ffd3df0f5e891298bbbb65ea63c.zip |
CIFS: FS-Cache: Uncache unread pages in cifs_readpages() before freeing them
In cifs_readpages(), we may decide we don't want to read a page after all -
but the page may already have passed through fscache_read_or_alloc_pages() and
thus have marks and reservations set. Thus we have to call
fscache_readpages_cancel() or fscache_uncache_page() on the pages we're
returning to clear the marks.
NFS, AFS and 9P should be unaffected by this as they call read_cache_pages()
which does the cleanup for you.
Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions