summaryrefslogtreecommitdiff
path: root/fs/namei.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2015-05-08 20:23:53 +0300
committerAl Viro <viro@zeniv.linux.org.uk>2015-05-11 15:13:14 +0300
commit0450b2d120ed9e6d4ac7a6eade0ad116f69b88f7 (patch)
tree24f14db9cc7aa0b106dcb09c9927dfa6712dfd1e /fs/namei.c
parent294d71ff2f020aa2ef7057a7bd10cf2ec71b5ee3 (diff)
downloadlinux-0450b2d120ed9e6d4ac7a6eade0ad116f69b88f7.tar.xz
namei: store seq numbers in nd->stack[]
we'll need them for unlazy_walk() Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/namei.c')
-rw-r--r--fs/namei.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/namei.c b/fs/namei.c
index 20bf494307c9..92bf0312fa71 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -508,6 +508,7 @@ struct nameidata {
void *cookie;
const char *name;
struct inode *inode;
+ unsigned seq;
} *stack, internal[EMBEDDED_LEVELS];
};
@@ -1577,6 +1578,7 @@ static int pick_link(struct nameidata *nd, struct path *link,
last->link = *link;
last->cookie = NULL;
last->inode = inode;
+ last->seq = seq;
return 1;
}