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

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

diff -u --recursive --new-file v2.3.9/linux/fs/nfs/write.c linux/fs/nfs/write.c
@@ -305,6 +305,7 @@
 		goto out_req;
 
 	/* Put the task on inode's writeback request list. */
+	get_file(file);
 	wreq->wb_file = file;
 	wreq->wb_pid    = current->pid;
 	wreq->wb_page   = page;
@@ -467,7 +468,6 @@
 	 * The IO completion will then free the page and the dentry.
 	 */
 	get_page(page);
-	atomic_inc(&file->f_count);
 
 	/* Schedule request */
 	synchronous = schedule_write_request(req, synchronous);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)