Преглед на файлове

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 <Trond.Myklebust@netapp.com>
Trond Myklebust преди 14 години
родител
ревизия
4b38a6db01
променени са 1 файла, в които са добавени 0 реда и са изтрити 1 реда
  1. 0 1
      fs/nfs/write.c

+ 0 - 1
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);
 	req = nfs_setup_write_request(ctx, page, offset, count);
 	if (IS_ERR(req))
 	if (IS_ERR(req))
 		return PTR_ERR(req);
 		return PTR_ERR(req);
-	nfs_mark_request_dirty(req);
 	/* Update file length */
 	/* Update file length */
 	nfs_grow_file(page, offset, count);
 	nfs_grow_file(page, offset, count);
 	nfs_mark_uptodate(page, req->wb_pgbase, req->wb_bytes);
 	nfs_mark_uptodate(page, req->wb_pgbase, req->wb_bytes);