diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2016-03-07 23:27:22 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-03-14 00:16:48 -0400 |
commit | e12a4e8a04a9ef84ba645379c56abad1a0ca9dbd (patch) | |
tree | 469060c574a423615cd270eefb0008c41098e0c2 | |
parent | 85f40482bc175f14f63d78fe482ef1826cf3913d (diff) |
quota: use lookup_one_len_unlocked()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r-- | fs/quota/dquot.c | 4 |
1 files changed, 1 insertions, 3 deletions
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, | |||
2430 | struct dentry *dentry; | 2430 | struct dentry *dentry; |
2431 | int error; | 2431 | int error; |
2432 | 2432 | ||
2433 | inode_lock(d_inode(sb->s_root)); | 2433 | dentry = lookup_one_len_unlocked(qf_name, sb->s_root, strlen(qf_name)); |
2434 | dentry = lookup_one_len(qf_name, sb->s_root, strlen(qf_name)); | ||
2435 | inode_unlock(d_inode(sb->s_root)); | ||
2436 | if (IS_ERR(dentry)) | 2434 | if (IS_ERR(dentry)) |
2437 | return PTR_ERR(dentry); | 2435 | return PTR_ERR(dentry); |
2438 | 2436 | ||