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.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/romfs/inode.c b/fs/romfs/inode.c
index aa361336a..211563b1c 100644
--- a/fs/romfs/inode.c
+++ b/fs/romfs/inode.c
@@ -451,7 +451,8 @@ out:
}
static struct dentry *romfs_follow_link(struct dentry *dentry,
- struct dentry *base)
+ struct dentry *base,
+ unsigned int follow)
{
struct inode *inode = dentry->d_inode;
char *link;
@@ -470,7 +471,7 @@ static struct dentry *romfs_follow_link(struct dentry *dentry,
} else
link[len] = 0;
- dentry = lookup_dentry(link, base, 1);
+ dentry = lookup_dentry(link, base, follow);
kfree(link);
if (0) {