@@ -1884,8 +1884,7 @@ static const char *step_into(struct nameidata *nd, int flags,
18841884 return pick_link (nd , & path , inode , flags );
18851885}
18861886
1887- static struct dentry * follow_dotdot_rcu (struct nameidata * nd ,
1888- struct inode * * inodep )
1887+ static struct dentry * follow_dotdot_rcu (struct nameidata * nd )
18891888{
18901889 struct dentry * parent , * old ;
18911890
@@ -1909,7 +1908,6 @@ static struct dentry *follow_dotdot_rcu(struct nameidata *nd,
19091908 }
19101909 old = nd -> path .dentry ;
19111910 parent = old -> d_parent ;
1912- * inodep = parent -> d_inode ;
19131911 nd -> next_seq = read_seqcount_begin (& parent -> d_seq );
19141912 // makes sure that non-RCU pathwalk could reach this state
19151913 if (read_seqcount_retry (& old -> d_seq , nd -> seq ))
@@ -1923,12 +1921,10 @@ static struct dentry *follow_dotdot_rcu(struct nameidata *nd,
19231921 if (unlikely (nd -> flags & LOOKUP_BENEATH ))
19241922 return ERR_PTR (- ECHILD );
19251923 nd -> next_seq = nd -> seq ;
1926- * inodep = nd -> path .dentry -> d_inode ;
19271924 return nd -> path .dentry ;
19281925}
19291926
1930- static struct dentry * follow_dotdot (struct nameidata * nd ,
1931- struct inode * * inodep )
1927+ static struct dentry * follow_dotdot (struct nameidata * nd )
19321928{
19331929 struct dentry * parent ;
19341930
@@ -1952,13 +1948,11 @@ static struct dentry *follow_dotdot(struct nameidata *nd,
19521948 dput (parent );
19531949 return ERR_PTR (- ENOENT );
19541950 }
1955- * inodep = parent -> d_inode ;
19561951 return parent ;
19571952
19581953in_root :
19591954 if (unlikely (nd -> flags & LOOKUP_BENEATH ))
19601955 return ERR_PTR (- EXDEV );
1961- * inodep = nd -> path .dentry -> d_inode ;
19621956 return dget (nd -> path .dentry );
19631957}
19641958
@@ -1967,17 +1961,16 @@ static const char *handle_dots(struct nameidata *nd, int type)
19671961 if (type == LAST_DOTDOT ) {
19681962 const char * error = NULL ;
19691963 struct dentry * parent ;
1970- struct inode * inode ;
19711964
19721965 if (!nd -> root .mnt ) {
19731966 error = ERR_PTR (set_root (nd ));
19741967 if (error )
19751968 return error ;
19761969 }
19771970 if (nd -> flags & LOOKUP_RCU )
1978- parent = follow_dotdot_rcu (nd , & inode );
1971+ parent = follow_dotdot_rcu (nd );
19791972 else
1980- parent = follow_dotdot (nd , & inode );
1973+ parent = follow_dotdot (nd );
19811974 if (IS_ERR (parent ))
19821975 return ERR_CAST (parent );
19831976 error = step_into (nd , WALK_NOFOLLOW , parent );
0 commit comments