diff options
| author | Al Viro <viro@zeniv.linux.org.uk> | 2025-06-09 06:25:36 +0300 |
|---|---|---|
| committer | Al Viro <viro@zeniv.linux.org.uk> | 2025-06-30 01:13:41 +0300 |
| commit | 05da054d43770e229dfb0e185c15452eed14364c (patch) | |
| tree | e99c8dd4d3e780ffe309be758bb5c53356f05c00 /tools/perf/scripts/python/gecko.py | |
| parent | e031251cb249f824ad67cb0b2fc18b68d5792b8d (diff) | |
| download | linux-05da054d43770e229dfb0e185c15452eed14364c.tar.xz | |
new predicate: anon_ns_root(mount)
checks if mount is the root of an anonymouns namespace.
Switch open-coded equivalents to using it.
For mounts that belong to anon namespace !mnt_has_parent(mount)
is the same as mount == ns->root, and intent is more obvious in
the latter form.
Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions
