patch-2.3.5 linux/fs/nfs/write.c
Next file: linux/fs/ntfs/util.c
Previous file: linux/fs/nfs/file.c
Back to the patch index
Back to the overall index
- Lines: 31
- Date:
Tue Jun 1 10:41:07 1999
- Orig file:
v2.3.4/linux/fs/nfs/write.c
- Orig date:
Fri May 14 18:55:26 1999
diff -u --recursive --new-file v2.3.4/linux/fs/nfs/write.c linux/fs/nfs/write.c
@@ -408,17 +408,17 @@
* things with a page scheduled for an RPC call (e.g. invalidate it).
*/
int
-nfs_updatepage(struct file *file, struct page *page, unsigned long offset, unsigned int count, int sync)
+nfs_updatepage(struct file *file, struct page *page, unsigned long offset, unsigned int count)
{
struct dentry *dentry = file->f_dentry;
struct inode *inode = dentry->d_inode;
struct nfs_wreq *req;
- int synchronous = sync;
+ int synchronous = file->f_flags & O_SYNC;
int retval;
- dprintk("NFS: nfs_updatepage(%s/%s %d@%ld, sync=%d)\n",
+ dprintk("NFS: nfs_updatepage(%s/%s %d@%ld)\n",
dentry->d_parent->d_name.name, dentry->d_name.name,
- count, page->offset+offset, sync);
+ count, page->offset+offset);
/*
* Try to find a corresponding request on the writeback queue.
@@ -454,7 +454,7 @@
file->f_count++;
/* Schedule request */
- synchronous = schedule_write_request(req, sync);
+ synchronous = schedule_write_request(req, synchronous);
updated:
if (req->wb_bytes == PAGE_SIZE)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)