From: Trond Myklebust Date: Tue, 5 Dec 2006 05:45:19 +0000 (-0500) Subject: NFS: Clean up calls to mark_inode_dirty() part 2 X-Git-Tag: v2.6.20-rc1~34^2~412^2~33 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a18030445fd4dd20e2248007b5d1cf0b5d89c69d;p=linux-2.6 NFS: Clean up calls to mark_inode_dirty() part 2 Signed-off-by: Trond Myklebust --- diff --git a/fs/nfs/write.c b/fs/nfs/write.c index 9624aecab9..7f3844d2bf 100644 --- a/fs/nfs/write.c +++ b/fs/nfs/write.c @@ -440,7 +440,7 @@ nfs_mark_request_dirty(struct nfs_page *req) nfs_list_add_request(req, &nfsi->dirty); nfsi->ndirty++; spin_unlock(&nfsi->req_lock); - mark_inode_dirty(inode); + __mark_inode_dirty(inode, I_DIRTY_PAGES); } static void @@ -474,7 +474,7 @@ nfs_mark_request_commit(struct nfs_page *req) nfsi->ncommit++; spin_unlock(&nfsi->req_lock); inc_zone_page_state(req->wb_page, NR_UNSTABLE_NFS); - mark_inode_dirty(inode); + __mark_inode_dirty(inode, I_DIRTY_DATASYNC); } #endif