patch-2.1.34 linux/fs/nfs/write.c
Next file: linux/fs/nfsd/nfssvc.c
Previous file: linux/fs/nfs/read.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Mon Apr 14 09:31:09 1997
- Orig file:
v2.1.33/linux/fs/nfs/write.c
- Orig date:
Mon Apr 7 11:35:31 1997
diff -u --recursive --new-file v2.1.33/linux/fs/nfs/write.c linux/fs/nfs/write.c
@@ -339,7 +339,7 @@
wreq->wb_offset = offset;
wreq->wb_bytes = bytes;
inode->i_count++;
- page->count++;
+ atomic_inc(&page->count);
append_write_request(&NFS_WRITEBACK(inode), wreq);
@@ -399,7 +399,7 @@
struct page *page = req->wb_page;
add_wait_queue(&page->wait, &wait);
- page->count++;
+ atomic_inc(&page->count);
repeat:
current->state = TASK_INTERRUPTIBLE;
if (PageLocked(page)) {
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov