patch-2.1.89 linux/fs/nfs/write.c
Next file: linux/fs/ntfs/fs.c
Previous file: linux/fs/nfs/read.c
Back to the patch index
Back to the overall index
- Lines: 23
- Date:
Fri Feb 27 17:55:28 1998
- Orig file:
v2.1.88/linux/fs/nfs/write.c
- Orig date:
Fri Jan 30 11:28:08 1998
diff -u --recursive --new-file v2.1.88/linux/fs/nfs/write.c linux/fs/nfs/write.c
@@ -493,8 +493,9 @@
* (for now), and we currently do this synchronously only.
*/
int
-nfs_writepage(struct dentry *dentry, struct page *page)
+nfs_writepage(struct file * file, struct page *page)
{
+ struct dentry *dentry = file->f_dentry;
return nfs_writepage_sync(dentry, dentry->d_inode, page, 0, PAGE_SIZE);
}
@@ -505,9 +506,10 @@
* things with a page scheduled for an RPC call (e.g. invalidate it).
*/
int
-nfs_updatepage(struct dentry *dentry, struct page *page, const char *buffer,
+nfs_updatepage(struct file *file, struct page *page, const char *buffer,
unsigned long offset, unsigned int count, int sync)
{
+ struct dentry *dentry = file->f_dentry;
struct inode *inode = dentry->d_inode;
u8 *page_addr = (u8 *) page_address(page);
struct nfs_wreq *req;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov