patch-2.1.78 linux/fs/romfs/inode.c

Next file: linux/fs/smbfs/dir.c
Previous file: linux/fs/proc/root.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.77/linux/fs/romfs/inode.c linux/fs/romfs/inode.c
@@ -391,8 +391,9 @@
  */
 
 static int
-romfs_readpage(struct inode * inode, struct page * page)
+romfs_readpage(struct dentry * dentry, struct page * page)
 {
+	struct inode *inode = dentry->d_inode;
 	unsigned long buf;
 	unsigned long offset, avail, readlen;
 	int result = -EIO;
@@ -428,8 +429,9 @@
 }
 
 static int
-romfs_readlink(struct inode *inode, char *buffer, int len)
+romfs_readlink(struct dentry *dentry, char *buffer, int len)
 {
+	struct inode *inode = dentry->d_inode;
 	int mylen;
 	char buf[ROMFS_MAXFN];		/* XXX dynamic */
 
@@ -450,11 +452,12 @@
 	return mylen;
 }
 
-static struct dentry *romfs_follow_link(struct inode *inode, struct dentry *base)
+static struct dentry *romfs_follow_link(struct dentry *dentry,
+					struct dentry *base)
 {
+	struct inode *inode = dentry->d_inode;
 	char *link;
 	int len, cnt;
-	struct dentry *dentry;
 
 	len = inode->i_size;
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov