Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 231523
b: refs/heads/master
c: 87556ef
h: refs/heads/master
i:
  231521: e5fb679
  231519: c6c6122
v: v3
  • Loading branch information
David Howells authored and Al Viro committed Jan 16, 2011
1 parent c18f78f commit dafed7a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1972580bb4edea3ed6fe273b2ca72f44f10f8c86
refs/heads/master: 87556ef19926e97464e0163a7840140527ae6615
8 changes: 2 additions & 6 deletions trunk/fs/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -800,12 +800,8 @@ __do_follow_link(const struct path *link, struct nameidata *nd, void **p)
touch_atime(link->mnt, dentry);
nd_set_link(nd, NULL);

if (link->mnt != nd->path.mnt) {
path_to_nameidata(link, nd);
nd->inode = nd->path.dentry->d_inode;
dget(dentry);
}
mntget(link->mnt);
if (link->mnt == nd->path.mnt)
mntget(link->mnt);

nd->last_type = LAST_BIND;
*p = dentry->d_inode->i_op->follow_link(dentry, nd);
Expand Down

0 comments on commit dafed7a

Please sign in to comment.