diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2020-02-28 18:17:52 +0300 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2020-04-02 08:09:21 +0300 |
commit | 165200d6cb88a3cc1fdeb12e11e97fb96bf685d9 (patch) | |
tree | 902a294e9a8e8cc86d7320b434c8411f59fd8e44 /tools/perf/scripts/python/net_dropmonitor.py | |
parent | efe772d6283b3672c0880b10fc4ceea69bc782ca (diff) | |
download | linux-165200d6cb88a3cc1fdeb12e11e97fb96bf685d9.tar.xz |
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>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions