patch-2.1.45 linux/fs/nfs/write.c

Next file: linux/fs/nfsd/export.c
Previous file: linux/fs/nfs/read.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.44/linux/fs/nfs/write.c linux/fs/nfs/write.c
@@ -338,7 +338,7 @@
 	wreq->wb_page   = page;
 	wreq->wb_offset = offset;
 	wreq->wb_bytes  = bytes;
-	atomic_inc(&inode->i_count);
+
 	atomic_inc(&page->count);
 
 	append_write_request(&NFS_WRITEBACK(inode), wreq);
@@ -695,7 +695,6 @@
 
 	status = req->wb_task.tk_status;
 	remove_write_request(&nfs_failed_requests, req);
-	iput(req->wb_inode);
 	kfree(req);
 	return status;
 }
@@ -788,7 +787,6 @@
 			dprintk("NFS: %4d saving write failure code\n",
 						task->tk_pid);
 			append_write_request(&nfs_failed_requests, req);
-			atomic_inc(&inode->i_count);
 		}
 		clear_bit(PG_uptodate, &page->flags);
 	} else if (!WB_CANCELLED(req)) {
@@ -818,6 +816,5 @@
 		kfree(req);
 
 	free_page(page_address(page));
-	iput(inode);
 	nr_write_requests--;
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov