diff options
| -rw-r--r-- | fs/quota/dquot.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/quota/dquot.c b/fs/quota/dquot.c index eb5a755718f6..cd6bb9a33c13 100644 --- a/fs/quota/dquot.c +++ b/fs/quota/dquot.c | |||
| @@ -2164,7 +2164,9 @@ int vfs_quota_on_mount(struct super_block *sb, char *qf_name, | |||
| 2164 | struct dentry *dentry; | 2164 | struct dentry *dentry; |
| 2165 | int error; | 2165 | int error; |
| 2166 | 2166 | ||
| 2167 | mutex_lock(&sb->s_root->d_inode->i_mutex); | ||
| 2167 | dentry = lookup_one_len(qf_name, sb->s_root, strlen(qf_name)); | 2168 | dentry = lookup_one_len(qf_name, sb->s_root, strlen(qf_name)); |
| 2169 | mutex_unlock(&sb->s_root->d_inode->i_mutex); | ||
| 2168 | if (IS_ERR(dentry)) | 2170 | if (IS_ERR(dentry)) |
| 2169 | return PTR_ERR(dentry); | 2171 | return PTR_ERR(dentry); |
| 2170 | 2172 | ||
