diff options
author | Tom Haynes | 2015-02-13 22:19:53 +0100 |
---|---|---|
committer | Trond Myklebust | 2015-02-13 23:47:26 +0100 |
commit | d15bc38df607c893c36f4962dca0f57174c6a5c9 (patch) | |
tree | d263dcfbfaed2de1fde01a028d14184dace7781b /fs/nfs/filelayout | |
parent | Merge branch 'for-3.20/bdi' of git://git.kernel.dk/linux-block (diff) | |
download | kernel-qcow2-linux-d15bc38df607c893c36f4962dca0f57174c6a5c9.tar.gz kernel-qcow2-linux-d15bc38df607c893c36f4962dca0f57174c6a5c9.tar.xz kernel-qcow2-linux-d15bc38df607c893c36f4962dca0f57174c6a5c9.zip |
nfs: Provide and use helper functions for marking a page as unstable
Signed-off-by: Tom Haynes <loghyr@primarydata.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs/filelayout')
-rw-r--r-- | fs/nfs/filelayout/filelayout.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/fs/nfs/filelayout/filelayout.c b/fs/nfs/filelayout/filelayout.c index 7ae1c263c5cf..e1e5ea262a13 100644 --- a/fs/nfs/filelayout/filelayout.c +++ b/fs/nfs/filelayout/filelayout.c @@ -1000,13 +1000,8 @@ mds_commit: nfs_list_add_request(req, list); cinfo->mds->ncommit++; spin_unlock(cinfo->lock); - if (!cinfo->dreq) { - inc_zone_page_state(req->wb_page, NR_UNSTABLE_NFS); - inc_bdi_stat(inode_to_bdi(page_file_mapping(req->wb_page)->host), - BDI_RECLAIMABLE); - __mark_inode_dirty(req->wb_context->dentry->d_inode, - I_DIRTY_DATASYNC); - } + if (!cinfo->dreq) + nfs_mark_page_unstable(req->wb_page); } static u32 calc_ds_index_from_commit(struct pnfs_layout_segment *lseg, u32 i) |