aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/namei.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/namei.c b/fs/namei.c
index e30deefad8f8..e0881c0bd228 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -1743,11 +1743,11 @@ static int walk_component(struct nameidata *nd, int flags)
1743 if (err < 0) 1743 if (err < 0)
1744 return err; 1744 return err;
1745 1745
1746 inode = d_backing_inode(path.dentry);
1747 seq = 0; /* we are already out of RCU mode */ 1746 seq = 0; /* we are already out of RCU mode */
1748 err = -ENOENT; 1747 err = -ENOENT;
1749 if (d_is_negative(path.dentry)) 1748 if (d_is_negative(path.dentry))
1750 goto out_path_put; 1749 goto out_path_put;
1750 inode = d_backing_inode(path.dentry);
1751 } 1751 }
1752 1752
1753 if (flags & WALK_PUT) 1753 if (flags & WALK_PUT)
@@ -3192,12 +3192,12 @@ retry_lookup:
3192 return error; 3192 return error;
3193 3193
3194 BUG_ON(nd->flags & LOOKUP_RCU); 3194 BUG_ON(nd->flags & LOOKUP_RCU);
3195 inode = d_backing_inode(path.dentry);
3196 seq = 0; /* out of RCU mode, so the value doesn't matter */ 3195 seq = 0; /* out of RCU mode, so the value doesn't matter */
3197 if (unlikely(d_is_negative(path.dentry))) { 3196 if (unlikely(d_is_negative(path.dentry))) {
3198 path_to_nameidata(&path, nd); 3197 path_to_nameidata(&path, nd);
3199 return -ENOENT; 3198 return -ENOENT;
3200 } 3199 }
3200 inode = d_backing_inode(path.dentry);
3201finish_lookup: 3201finish_lookup:
3202 if (nd->depth) 3202 if (nd->depth)
3203 put_link(nd); 3203 put_link(nd);