Home
last modified time | relevance | path

Searched hist:"165200 d6" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/fs/
H A Dnamei.c165200d6 Fri Feb 28 09:17:52 CST 2020 Al Viro <viro@zeniv.linux.org.uk> follow_dotdot(): be lazy about changing nd->path

Change nd->path only after the loop is done and only in case we hadn't
ended up finding ourselves in root. Same for NO_XDEV check.

That separates the "check how far back do we need to go through the
mount stack" logics from the rest of .. traversal.

NOTE: path_get/path_put introduced here are temporary. They will
go away later in the series.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
165200d6 Fri Feb 28 09:17:52 CST 2020 Al Viro <viro@zeniv.linux.org.uk> follow_dotdot(): be lazy about changing nd->path

Change nd->path only after the loop is done and only in case we hadn't
ended up finding ourselves in root. Same for NO_XDEV check.

That separates the "check how far back do we need to go through the
mount stack" logics from the rest of .. traversal.

NOTE: path_get/path_put introduced here are temporary. They will
go away later in the series.

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