patch-2.1.47 linux/fs/nfs/write.c
Next file: linux/fs/nfsd/export.c
Previous file: linux/fs/namei.c
Back to the patch index
Back to the overall index
-  Lines: 16
-  Date:
Wed Jul 23 12:53:04 1997
-  Orig file: 
v2.1.46/linux/fs/nfs/write.c
-  Orig date: 
Thu Jul 17 10:06:07 1997
diff -u --recursive --new-file v2.1.46/linux/fs/nfs/write.c linux/fs/nfs/write.c
@@ -424,7 +424,6 @@
 
 /*
  * Update and possibly write a cached page of an NFS file.
- * The page is already locked when we get here.
  *
  * XXX: Keep an eye on generic_file_read to make sure it doesn't do bad
  * things with a page scheduled for an RPC call (e.g. invalidate it).
@@ -441,6 +440,7 @@
 				inode->i_dev, inode->i_ino,
 				count, page->offset+offset, sync);
 
+	set_bit(PG_locked, &page->flags);
 	page_addr = (u8 *) page_address(page);
 
 	/* If wsize is smaller than page size, update and write
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov