diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-01-13 02:28:08 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-02-03 15:35:07 -0800 |
commit | f40313ac39fedca519c36fdc454acf2632e641da (patch) | |
tree | 355656191392ce44cb1bdb4d415134fd65b2b196 /fs/nfs | |
parent | 02241bc47e8961768de83d855accd0dcad1df045 (diff) | |
download | linux-f40313ac39fedca519c36fdc454acf2632e641da.tar.gz linux-f40313ac39fedca519c36fdc454acf2632e641da.tar.bz2 linux-f40313ac39fedca519c36fdc454acf2632e641da.zip |
NFS: Micro-optimisation for nfs_wb_page()
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r-- | fs/nfs/write.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |