• Al Viro's avatar
    simplify link_path_walk() tail · ce052544
    Al Viro authored
    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: default avatarAl Viro <viro@zeniv.linux.org.uk>
    ce052544
namei.c 84.6 KB