aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/9p/vfs_inode.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c
index 4e65aa903345..5bbb5a02116f 100644
--- a/fs/9p/vfs_inode.c
+++ b/fs/9p/vfs_inode.c
@@ -779,7 +779,6 @@ struct dentry *v9fs_vfs_lookup(struct inode *dir, struct dentry *dentry,
779 unsigned int flags) 779 unsigned int flags)
780{ 780{
781 struct dentry *res; 781 struct dentry *res;
782 struct super_block *sb;
783 struct v9fs_session_info *v9ses; 782 struct v9fs_session_info *v9ses;
784 struct p9_fid *dfid, *fid; 783 struct p9_fid *dfid, *fid;
785 struct inode *inode; 784 struct inode *inode;
@@ -791,7 +790,6 @@ struct dentry *v9fs_vfs_lookup(struct inode *dir, struct dentry *dentry,
791 if (dentry->d_name.len > NAME_MAX) 790 if (dentry->d_name.len > NAME_MAX)
792 return ERR_PTR(-ENAMETOOLONG); 791 return ERR_PTR(-ENAMETOOLONG);
793 792
794 sb = dir->i_sb;
795 v9ses = v9fs_inode2v9ses(dir); 793 v9ses = v9fs_inode2v9ses(dir);
796 /* We can walk d_parent because we hold the dir->i_mutex */ 794 /* We can walk d_parent because we hold the dir->i_mutex */
797 dfid = v9fs_fid_lookup(dentry->d_parent); 795 dfid = v9fs_fid_lookup(dentry->d_parent);