OSDN Git Service

link_path_walk: nd->depth massage, part 9
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 4 May 2015 01:16:35 +0000 (21:16 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 11 May 2015 02:20:06 +0000 (22:20 -0400)
commitdc7af8dc05bc46410b978dae14fda8414b65db30
tree380694adc5f0fdaa6dda47490e06641f5c53564d
parent21c3003d36a8b6c54811bd87eb5f6fc830de9c82
link_path_walk: nd->depth massage, part 9

Make link_path_walk() work with any value of nd->depth on entry -
memorize it and use it in tests instead of comparing with 1.
Don't bother with increment/decrement in path_init().

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