From: Trond Myklebust Date: Mon, 11 Apr 2011 15:56:23 +0000 (-0400) Subject: NFS: Eliminate duplicate call to nfs_mark_request_dirty X-Git-Tag: v2.6.39-rc6~24^2~18 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4b38a6db01b09198f4045661815a0039c3d80660;p=platform%2Fkernel%2Flinux-exynos.git NFS: Eliminate duplicate call to nfs_mark_request_dirty We only need to call nfs_mark_request_dirty() once in nfs_writepage_setup(). Signed-off-by: Trond Myklebust --- diff --git a/fs/nfs/write.c b/fs/nfs/write.c index e4cbc11..bb60818 100644 --- a/fs/nfs/write.c +++ b/fs/nfs/write.c @@ -680,7 +680,6 @@ static int nfs_writepage_setup(struct nfs_open_context *ctx, struct page *page, req = nfs_setup_write_request(ctx, page, offset, count); if (IS_ERR(req)) return PTR_ERR(req); - nfs_mark_request_dirty(req); /* Update file length */ nfs_grow_file(page, offset, count); nfs_mark_uptodate(page, req->wb_pgbase, req->wb_bytes);