summaryrefslogtreecommitdiffstats
path: root/fs/nfs/file.c
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2006-12-05 00:35:42 -0500
committerTrond Myklebust <Trond.Myklebust@netapp.com>2006-12-06 10:46:40 -0500
commit61822ab5e3ed09fcfc49e37227b655202adf6130 (patch)
tree224a470689463469672ed38b0da3d9f47bc8a245 /fs/nfs/file.c
parente261f51f25b98c213e0b3d7f2109b117d714f69d (diff)
downloadop-kernel-dev-61822ab5e3ed09fcfc49e37227b655202adf6130.zip
op-kernel-dev-61822ab5e3ed09fcfc49e37227b655202adf6130.tar.gz
NFS: Ensure we only call set_page_writeback() under the page lock
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/file.c')
-rw-r--r--fs/nfs/file.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/fs/nfs/file.c b/fs/nfs/file.c
index c2fe3bd..238fb66 100644
--- a/fs/nfs/file.c
+++ b/fs/nfs/file.c
@@ -307,14 +307,10 @@ static int nfs_commit_write(struct file *file, struct page *page, unsigned offse
static void nfs_invalidate_page(struct page *page, unsigned long offset)
{
- loff_t range_start, range_end;
-
if (offset != 0)
return;
/* Cancel any unstarted writes on this page */
- range_start = page_offset(page);
- range_end = range_start + (loff_t)(PAGE_CACHE_SIZE - 1);
- nfs_sync_mapping_range(page->mapping, range_start, range_end, FLUSH_INVALIDATE);
+ nfs_wb_page_priority(page->mapping->host, page, FLUSH_INVALIDATE);
}
static int nfs_release_page(struct page *page, gfp_t gfp)
OpenPOWER on IntegriCloud