diff options
Diffstat (limited to 'fs/9p/vfs_inode.c')
-rw-r--r-- | fs/9p/vfs_inode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c index df8bbb358d5..59782981b22 100644 --- a/fs/9p/vfs_inode.c +++ b/fs/9p/vfs_inode.c | |||
@@ -277,11 +277,11 @@ static struct dentry *v9fs_dentry_from_dir_inode(struct inode *inode) | |||
277 | { | 277 | { |
278 | struct dentry *dentry; | 278 | struct dentry *dentry; |
279 | 279 | ||
280 | spin_lock(&dcache_inode_lock); | 280 | spin_lock(&inode->i_lock); |
281 | /* Directory should have only one entry. */ | 281 | /* Directory should have only one entry. */ |
282 | BUG_ON(S_ISDIR(inode->i_mode) && !list_is_singular(&inode->i_dentry)); | 282 | BUG_ON(S_ISDIR(inode->i_mode) && !list_is_singular(&inode->i_dentry)); |
283 | dentry = list_entry(inode->i_dentry.next, struct dentry, d_alias); | 283 | dentry = list_entry(inode->i_dentry.next, struct dentry, d_alias); |
284 | spin_unlock(&dcache_inode_lock); | 284 | spin_unlock(&inode->i_lock); |
285 | return dentry; | 285 | return dentry; |
286 | } | 286 | } |
287 | 287 | ||