diff options
author | Christian Brauner <[email protected]> | 2021-12-03 12:17:00 +0100 |
---|---|---|
committer | Christian Brauner <[email protected]> | 2021-12-03 18:50:28 +0100 |
commit | 476860b3eb4a50958243158861d5340066df5af2 (patch) | |
tree | 4673772f88d7c7ba3580500331ce60eaa21c1b4d /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | a793d79ea3e041081cd7cbd8ee43d0b5e4914a2b (diff) |
fs: tweak fsuidgid_has_mapping()
If the caller's fs{g,u}id aren't mapped in the mount's idmapping we can
return early and skip the check whether the mapped fs{g,u}id also have a
mapping in the filesystem's idmapping. If the fs{g,u}id aren't mapped in
the mount's idmapping they consequently can't be mapped in the
filesystem's idmapping. So there's no point in checking that.
Link: https://lore.kernel.org/r/[email protected] (v1)
Link: https://lore.kernel.org/r/[email protected] (v2)
Link: https://lore.kernel.org/r/[email protected]
Cc: Seth Forshee <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Cc: Al Viro <[email protected]>
CC: [email protected]
Reviewed-by: Amir Goldstein <[email protected]>
Reviewed-by: Seth Forshee <[email protected]>
Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions