patch-2.3.30 linux/fs/smbfs/file.c
Next file: linux/fs/sysv/dir.c
Previous file: linux/fs/smbfs/dir.c
Back to the patch index
Back to the overall index
- Lines: 34
- Date:
Sun Dec 5 08:42:03 1999
- Orig file:
v2.3.29/linux/fs/smbfs/file.c
- Orig date:
Mon Nov 1 13:56:27 1999
diff -u --recursive --new-file v2.3.29/linux/fs/smbfs/file.c linux/fs/smbfs/file.c
@@ -97,10 +97,9 @@
return result;
}
-int
-smb_readpage(struct file *file, struct page *page)
+static int
+smb_readpage(struct dentry *dentry, struct page *page)
{
- struct dentry *dentry = file->f_dentry;
int error;
pr_debug("SMB: smb_readpage %08lx\n", page_address(page));
@@ -168,9 +167,8 @@
* We are called with the page locked and the caller unlocks.
*/
static int
-smb_writepage(struct file *file, struct page *page)
+smb_writepage(struct dentry *dentry, struct page *page)
{
- struct dentry *dentry = file->f_dentry;
int result;
#ifdef SMBFS_PARANOIA
@@ -403,9 +401,7 @@
NULL, /* get_block */
smb_readpage, /* readpage */
smb_writepage, /* writepage */
- NULL, /* flushpage */
NULL, /* truncate */
smb_file_permission, /* permission */
- NULL, /* smap */
smb_revalidate_inode, /* revalidate */
};
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)