From: David Howells Date: Wed, 4 Sep 2013 17:10:39 +0000 (+0000) Subject: CIFS: FS-Cache: Uncache unread pages in cifs_readpages() before freeing them X-Git-Tag: v3.12-rc4~9^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54afa99057ee2ffd3df0f5e891298bbbb65ea63c;p=pandora-kernel.git 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 Reviewed-by: Jeff Layton Signed-off-by: Steve French --- Reading git-diff-tree failed