Commit 0450b2d1 authored by Al Viro's avatar Al Viro

namei: store seq numbers in nd->stack[]

we'll need them for unlazy_walk()
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 294d71ff
...@@ -508,6 +508,7 @@ struct nameidata { ...@@ -508,6 +508,7 @@ struct nameidata {
void *cookie; void *cookie;
const char *name; const char *name;
struct inode *inode; struct inode *inode;
unsigned seq;
} *stack, internal[EMBEDDED_LEVELS]; } *stack, internal[EMBEDDED_LEVELS];
}; };
...@@ -1577,6 +1578,7 @@ static int pick_link(struct nameidata *nd, struct path *link, ...@@ -1577,6 +1578,7 @@ static int pick_link(struct nameidata *nd, struct path *link,
last->link = *link; last->link = *link;
last->cookie = NULL; last->cookie = NULL;
last->inode = inode; last->inode = inode;
last->seq = seq;
return 1; return 1;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment