summaryrefslogtreecommitdiffstats
path: root/fs/romfs/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/romfs/inode.c')
-rw-r--r--fs/romfs/inode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/romfs/inode.c b/fs/romfs/inode.c
index 94a8f61aa..47665f936 100644
--- a/fs/romfs/inode.c
+++ b/fs/romfs/inode.c
@@ -388,9 +388,9 @@ out: return ERR_PTR(res);
*/
static int
-romfs_readpage(struct dentry * dentry, struct page * page)
+romfs_readpage(struct file *file, struct page * page)
{
- struct inode *inode = dentry->d_inode;
+ struct inode *inode = (struct inode*)page->mapping->host;
unsigned long buf;
unsigned long offset, avail, readlen;
int result = -EIO;