diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-03-17 21:24:54 +0100 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-03-21 02:29:47 +0100 |
commit | b7c177fcd2022ca8572284deb8f9b6ab5730eafb (patch) | |
tree | fe4c55e5c504d6db8de36336ecd0b493a7f71c46 /fs/configfs/symlink.c | |
parent | configfs: don't bother with checks for mkdir/rmdir/unlink/symlink in root (diff) | |
download | linux-b7c177fcd2022ca8572284deb8f9b6ab5730eafb.tar.xz linux-b7c177fcd2022ca8572284deb8f9b6ab5730eafb.zip |
configfs: kill configfs_sb
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/configfs/symlink.c')
-rw-r--r-- | fs/configfs/symlink.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/configfs/symlink.c b/fs/configfs/symlink.c index 2817153d33c2..cc9f2546ea4a 100644 --- a/fs/configfs/symlink.c +++ b/fs/configfs/symlink.c @@ -110,13 +110,13 @@ out: static int get_target(const char *symname, struct path *path, - struct config_item **target) + struct config_item **target, struct super_block *sb) { int ret; ret = kern_path(symname, LOOKUP_FOLLOW|LOOKUP_DIRECTORY, path); if (!ret) { - if (path->dentry->d_sb == configfs_sb) { + if (path->dentry->d_sb == sb) { *target = configfs_get_config_item(path->dentry); if (!*target) { ret = -ENOENT; @@ -158,7 +158,7 @@ int configfs_symlink(struct inode *dir, struct dentry *dentry, const char *symna !type->ct_item_ops->allow_link) goto out_put; - ret = get_target(symname, &path, &target_item); + ret = get_target(symname, &path, &target_item, dentry->d_sb); if (ret) goto out_put; |