diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1998-03-17 22:05:47 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 1998-03-17 22:05:47 +0000 |
commit | 27cfca1ec98e91261b1a5355d10a8996464b63af (patch) | |
tree | 8e895a53e372fa682b4c0a585b9377d67ed70d0e /fs/romfs | |
parent | 6a76fb7214c477ccf6582bd79c5b4ccc4f9c41b1 (diff) |
Look Ma' what I found on my harddisk ...
o New faster syscalls for 2.1.x, too
o Upgrade to 2.1.89.
Don't try to run this. It's flaky as hell. But feel free to debug ...
Diffstat (limited to 'fs/romfs')
-rw-r--r-- | fs/romfs/.cvsignore | 1 | ||||
-rw-r--r-- | fs/romfs/inode.c | 13 |
2 files changed, 9 insertions, 5 deletions
diff --git a/fs/romfs/.cvsignore b/fs/romfs/.cvsignore index 4671378ae..857dd22e9 100644 --- a/fs/romfs/.cvsignore +++ b/fs/romfs/.cvsignore @@ -1 +1,2 @@ .depend +.*.flags diff --git a/fs/romfs/inode.c b/fs/romfs/inode.c index 3c99d0d9f..bc3a116b4 100644 --- a/fs/romfs/inode.c +++ b/fs/romfs/inode.c @@ -48,7 +48,6 @@ * to squeeze some more bytes out of this code.. :) */ -#include <linux/config.h> #include <linux/module.h> #include <linux/types.h> #include <linux/errno.h> @@ -391,8 +390,10 @@ out: */ static int -romfs_readpage(struct inode * inode, struct page * page) +romfs_readpage(struct file * file, struct page * page) { + struct dentry *dentry = file->f_dentry; + struct inode *inode = dentry->d_inode; unsigned long buf; unsigned long offset, avail, readlen; int result = -EIO; @@ -428,8 +429,9 @@ romfs_readpage(struct inode * inode, struct page * page) } 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 @@ out: 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; |