Handle failed return values of fscache_fallback_read_page() in switch statement. Signed-off-by: Dave Wysochanski <dwysocha@xxxxxxxxxx> --- fs/nfs/fscache.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/fs/nfs/fscache.c b/fs/nfs/fscache.c index 5b0e78742444..d3efb8ba4fb7 100644 --- a/fs/nfs/fscache.c +++ b/fs/nfs/fscache.c @@ -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; -- 1.8.3.1 -- Linux-cachefs mailing list Linux-cachefs@xxxxxxxxxx https://listman.redhat.com/mailman/listinfo/linux-cachefs