tidy the trailing symlinks traversal up
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 15 Mar 2011 02:20:34 +0000 (22:20 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 15 Mar 2011 21:16:25 +0000 (17:16 -0400)
commit574197e0de46a8a4db5c54ef7b65e43ffa8873a7
treec7669dd50705785f4632ff9b054bcd2e4614ea46
parentb356379a020bb7197603118bb1cbc903963aa198
tidy the trailing symlinks traversal up

* pull the handling of current->total_link_count into
__do_follow_link()
* put the common "do ->put_link() if needed and path_put() the link"
  stuff into a helper (put_link(nd, link, cookie))
* rename __do_follow_link() to follow_link(), while we are at it

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