]> git.baikalelectronics.ru Git - kernel.git/commit
link_path_walk: kill the recursion
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 19 Apr 2015 00:30:49 +0000 (20:30 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 11 May 2015 02:19:58 +0000 (22:19 -0400)
commitb2b4030c18fd0543211319d36a534a04176d1d71
treea424abaed784474a336343b45c25cc57f5d52a21
parent6d63911b89a81206ca6f83f5b0d8ed65fac0ac44
link_path_walk: kill the recursion

absolutely straightforward now - the only variables we need to preserve
across the recursive call are name, link and cookie, and recursion depth
is limited (and can is equal to nd->depth).  So arrange an array of
triples to hold instances of those and be done with that.

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