From: Al Viro Date: Tue, 8 Mar 2016 04:27:22 +0000 (-0500) Subject: quota: use lookup_one_len_unlocked() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e12a4e8a04a9ef84ba645379c56abad1a0ca9dbd;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git quota: use lookup_one_len_unlocked() Signed-off-by: Al Viro --- diff --git a/fs/quota/dquot.c b/fs/quota/dquot.c index 3c3b81bb6dfe..04ca0cc6d065 100644 --- a/fs/quota/dquot.c +++ b/fs/quota/dquot.c @@ -2430,9 +2430,7 @@ int dquot_quota_on_mount(struct super_block *sb, char *qf_name, struct dentry *dentry; int error; - inode_lock(d_inode(sb->s_root)); - dentry = lookup_one_len(qf_name, sb->s_root, strlen(qf_name)); - inode_unlock(d_inode(sb->s_root)); + dentry = lookup_one_len_unlocked(qf_name, sb->s_root, strlen(qf_name)); if (IS_ERR(dentry)) return PTR_ERR(dentry);