]> git.baikalelectronics.ru Git - kernel.git/commit
simplify link_path_walk() tail
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 15 Mar 2011 01:28:04 +0000 (21:28 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 15 Mar 2011 21:16:25 +0000 (17:16 -0400)
commitc225e66de73d44e5ee6aaf314c78d39d1e8f4818
treedf50f16b0af733738b39c9430145d94e35a2abdb
parent63230310fe8b2dd0538b434f9a65f354ec054403
simplify link_path_walk() tail

Now that link_path_walk() is called without LOOKUP_PARENT
only from do_follow_link(), we can simplify the checks in
last component handling.  First of all, checking if we'd
arrived to a directory is not needed - the caller will check
it anyway.  And LOOKUP_FOLLOW is guaranteed to be there,
since we only get to that place with nd->depth > 0.

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