From: Al Viro Date: Tue, 15 Mar 2011 01:28:04 +0000 (-0400) Subject: simplify link_path_walk() tail X-Git-Tag: v2.6.39-rc1~514^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce0525449da56444948c368f52e10f3db0465338;p=pandora-kernel.git 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 --- Reading git-diff-tree failed