Message ID | 20191104124322.31226-1-honli@redhat.com (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show |
Series | configfs: calculate the depth of parent item | expand |
Thanks, applied to the configfs tree. I will send it to Linus by the end of the week.
diff --git a/fs/configfs/symlink.c b/fs/configfs/symlink.c index dc5dbf6a81d7..cb61467478ca 100644 --- a/fs/configfs/symlink.c +++ b/fs/configfs/symlink.c @@ -101,7 +101,7 @@ static int create_link(struct config_item *parent_item, } target_sd->s_links++; spin_unlock(&configfs_dirent_lock); - ret = configfs_get_target_path(item, item, body); + ret = configfs_get_target_path(parent_item, item, body); if (!ret) ret = configfs_create_link(target_sd, parent_item->ci_dentry, dentry, body);