]> git.baikalelectronics.ru Git - kernel.git/commit
namei: take increment of nd->depth into pick_link()
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 10 May 2015 15:50:01 +0000 (11:50 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 11 May 2015 02:20:19 +0000 (22:20 -0400)
commit5b93f9c5e6a7becd4d62a09a6aec1cf48cc59df0
tree49d4876e545dc24eda81ae9b23f56394cdbf8cd9
parent4648b7f5cadc7f0725242bcd4db75f6b71ba9d6a
namei: take increment of nd->depth into pick_link()

Makes the situation much more regular - we avoid a strange state
when the element just after the top of stack is used to store
struct path of symlink, but isn't counted in nd->depth.  This
is much more regular, so the normal failure exits, etc., work
fine.

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