From f40313ac39fedca519c36fdc454acf2632e641da Mon Sep 17 00:00:00 2001 From: Trond Myklebust Date: Sat, 13 Jan 2007 02:28:08 -0500 Subject: [PATCH] NFS: Micro-optimisation for nfs_wb_page() Signed-off-by: Trond Myklebust --- fs/nfs/write.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/nfs/write.c b/fs/nfs/write.c index 966b8db99a..fab214a4bc 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; -- 2.39.5