namei: store seq numbers in nd->stack[]
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 8 May 2015 17:23:53 +0000 (13:23 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 11 May 2015 12:13:14 +0000 (08:13 -0400)
we'll need them for unlazy_walk()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namei.c

index 20bf494307c991e41a4a799efe72bc06b2a2e503..92bf0312fa71165ba4163ffc03453e30c5cf62d7 100644 (file)
@@ -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;
 }