]> git.baikalelectronics.ru Git - kernel.git/commit
namei: take the treatment of absolute symlinks to get_link()
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 10 May 2015 15:01:00 +0000 (11:01 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 11 May 2015 02:20:17 +0000 (22:20 -0400)
commitdc0cf75881e7ab6d7f46ca3ae5685f0876f1c84c
tree172e315fc3d3fec020327a9878e522f8efec0e0d
parent4f52bea3c1f3fc502aeffd9919880e7464423045
namei: take the treatment of absolute symlinks to get_link()

rather than letting the callers handle the jump-to-root part of
semantics, do it right in get_link() and return the rest of the
body for the caller to deal with - at that point it's treated
the same way as relative symlinks would be.  And return NULL
when there's no "rest of the body" - those are treated the same
as pure jump symlink would be.

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