patch-2.1.129 linux/fs/nfs/file.c

Next file: linux/fs/nfs/inode.c
Previous file: linux/fs/nfs/dir.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.128/linux/fs/nfs/file.c linux/fs/nfs/file.c
@@ -95,7 +95,7 @@
 
 	dfprintk(VFS, "nfs: close(%x/%ld)\n", inode->i_dev, inode->i_ino);
 
-	status = nfs_flush_dirty_pages(inode, 0, 0, 0);
+	status = nfs_wbinval(inode);
 	error = nfs_write_error(inode);
 	if (!status)
 		status = error;
@@ -162,7 +162,7 @@
 
 	dfprintk(VFS, "nfs: fsync(%x/%ld)\n", inode->i_dev, inode->i_ino);
 
-	status = nfs_flush_dirty_pages(inode, current->pid, 0, 0);
+	status = nfs_wbinval_pid(inode, current->pid);
 	error = nfs_write_error(inode);
 	if (!status)
 		status = error;
@@ -246,7 +246,7 @@
 	 * been killed by a signal, that is). */
 	if (cmd == F_SETLK && fl->fl_type == F_UNLCK
 	    && !signal_pending(current)) {
-		status = nfs_flush_dirty_pages(inode, current->pid,
+		status = nfs_wb_area(inode, /* current->pid  ?*/
 			fl->fl_start, fl->fl_end == NLM_OFFSET_MAX? 0 :
 			fl->fl_end - fl->fl_start + 1);
 		if (status < 0)

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