Files
linux/fs
Al Viro 939724df56 link_path_walk: nd->depth massage, part 10
Get rid of orig_depth checks in OK: logics.  If nd->depth is
zero, we had been called from path_init() and we are done.
If it is greater than 1, we are not done, whether we'd been
called from path_init() or trailing_symlink().  And in
case when it's 1, we might have been called from path_init()
and reached the end of nested symlink (in which case
nd->stack[0].name will point to the rest of pathname and
we are not done) or from trailing_symlink(), in which case
we are done.

Just have trailing_symlink() leave NULL in nd->stack[0].name
and use that to discriminate between those cases.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2015-05-10 22:20:06 -04:00
..
2015-05-10 22:18:28 -04:00
2015-05-10 22:18:21 -04:00
2015-05-10 22:18:22 -04:00
2015-05-10 22:18:26 -04:00
2015-04-21 16:16:02 -04:00
2015-04-11 22:29:40 -04:00
2015-05-10 22:18:26 -04:00
2015-05-10 22:18:25 -04:00
2014-11-19 13:01:20 -05:00
2015-04-11 22:29:39 -04:00
2015-04-17 09:04:07 -04:00
2015-05-10 22:18:20 -04:00
2015-04-17 09:04:12 -04:00
2014-11-19 13:01:26 -05:00