]> err.no Git - linux-2.6/commitdiff
NFS: Micro-optimisation for nfs_wb_page()
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Sat, 13 Jan 2007 07:28:08 +0000 (02:28 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Sat, 3 Feb 2007 23:35:07 +0000 (15:35 -0800)
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/write.c

index 966b8db99ac59945a985c5e4491785c482dbf348..fab214a4bcb083792706dbdd52d00bf3f772c33b 100644 (file)
@@ -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;