]> git.baikalelectronics.ru Git - kernel.git/commit
pull handling of one pathname component into a helper
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 13 Mar 2011 23:58:58 +0000 (19:58 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 15 Mar 2011 21:16:20 +0000 (17:16 -0400)
commit89cdb1af16718e33e5d01324652e96cf2f890cee
treef4745174c126231bbd2c4a652d37f086ad035e3c
parented51bdf9da85e1314f06276610bbad8f9aa87bef
pull handling of one pathname component into a helper

new helper: walk_component().  Handles everything except symlinks;
returns negative on error, 0 on success and 1 on symlinks we decided
to follow.  Drops out of RCU mode on such symlinks.

link_path_walk() and do_last() switched to using that.

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