@@ -345,11 +345,6 @@ int __nfs_readpage_from_fscache(struct inode *inode, struct page *page)
}
ret = fscache_fallback_read_page(nfs_i_fscache(inode), page);
- if (ret < 0) {
- dfprintk(FSCACHE, "NFS: readpage_from_fscache: "
- "fscache_fallback_read_page failed ret = %d\n", ret);
- return ret;
- }
switch (ret) {
case 0: /* Read completed synchronously */
@@ -363,7 +358,7 @@ int __nfs_readpage_from_fscache(struct inode *inode, struct page *page)
case -ENODATA: /* page not in cache */
nfs_inc_fscache_stats(inode, NFSIOS_FSCACHE_PAGES_READ_FAIL);
dfprintk(FSCACHE,
- "NFS: readpage_from_fscache %d\n", ret);
+ "NFS: readpage_from_fscache failed %d\n", ret);
SetPageChecked(page);
return 1;
Handle failed return values of fscache_fallback_read_page() in switch statement. Signed-off-by: Dave Wysochanski <dwysocha@redhat.com> --- fs/nfs/fscache.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)