From: Trond Myklebust Date: Sat, 13 Jan 2007 07:28:08 +0000 (-0500) Subject: NFS: Micro-optimisation for nfs_wb_page() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f40313ac39fedca519c36fdc454acf2632e641da;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git NFS: Micro-optimisation for nfs_wb_page() Signed-off-by: Trond Myklebust --- diff --git a/fs/nfs/write.c b/fs/nfs/write.c index 966b8db99ac5..fab214a4bcb0 100644 --- a/fs/nfs/write.c +++ b/fs/nfs/write.c @@ -1516,6 +1516,8 @@ int nfs_wb_page_priority(struct inode *inode, struct page *page, int how) if (ret < 0) goto out; } + if (!PagePrivate(page)) + return 0; ret = nfs_sync_mapping_wait(page->mapping, &wbc, how); if (ret >= 0) return 0;