aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorChristian Brauner <christian.brauner@ubuntu.com>2021-12-03 12:17:00 +0100
committerChristian Brauner <christian.brauner@ubuntu.com>2021-12-03 18:50:28 +0100
commit476860b3eb4a50958243158861d5340066df5af2 (patch)
tree4673772f88d7c7ba3580500331ce60eaa21c1b4d /tools/perf/scripts/python/exported-sql-viewer.py
parenta793d79ea3e041081cd7cbd8ee43d0b5e4914a2b (diff)
downloadlinux-476860b3eb4a50958243158861d5340066df5af2.tar.gz
linux-476860b3eb4a50958243158861d5340066df5af2.tar.bz2
linux-476860b3eb4a50958243158861d5340066df5af2.zip
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/20211123114227.3124056-4-brauner@kernel.org (v1) Link: https://lore.kernel.org/r/20211130121032.3753852-4-brauner@kernel.org (v2) Link: https://lore.kernel.org/r/20211203111707.3901969-4-brauner@kernel.org Cc: Seth Forshee <sforshee@digitalocean.com> Cc: Christoph Hellwig <hch@lst.de> Cc: Al Viro <viro@zeniv.linux.org.uk> CC: linux-fsdevel@vger.kernel.org Reviewed-by: Amir Goldstein <amir73il@gmail.com> Reviewed-by: Seth Forshee <sforshee@digitalocean.com> Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions