diff options
Diffstat (limited to 'fs/9p/vfs_inode.c')
-rw-r--r-- | fs/9p/vfs_inode.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c index 47dfd5d29a6b..1073bca8488c 100644 --- a/fs/9p/vfs_inode.c +++ b/fs/9p/vfs_inode.c | |||
@@ -270,13 +270,11 @@ static struct dentry *v9fs_dentry_from_dir_inode(struct inode *inode) | |||
270 | { | 270 | { |
271 | struct dentry *dentry; | 271 | struct dentry *dentry; |
272 | 272 | ||
273 | spin_lock(&dcache_lock); | ||
274 | spin_lock(&dcache_inode_lock); | 273 | spin_lock(&dcache_inode_lock); |
275 | /* Directory should have only one entry. */ | 274 | /* Directory should have only one entry. */ |
276 | BUG_ON(S_ISDIR(inode->i_mode) && !list_is_singular(&inode->i_dentry)); | 275 | BUG_ON(S_ISDIR(inode->i_mode) && !list_is_singular(&inode->i_dentry)); |
277 | dentry = list_entry(inode->i_dentry.next, struct dentry, d_alias); | 276 | dentry = list_entry(inode->i_dentry.next, struct dentry, d_alias); |
278 | spin_unlock(&dcache_inode_lock); | 277 | spin_unlock(&dcache_inode_lock); |
279 | spin_unlock(&dcache_lock); | ||
280 | return dentry; | 278 | return dentry; |
281 | } | 279 | } |
282 | 280 | ||