diff options
author | Christian Brauner <christian.brauner@ubuntu.com> | 2021-03-20 13:26:23 +0100 |
---|---|---|
committer | Christian Brauner <christian.brauner@ubuntu.com> | 2021-03-23 11:15:24 +0100 |
commit | 8e5389132ab429604c1a2459b52f0c849a71cc61 (patch) | |
tree | 07ed2f940b4e014d3812c7442be01db10fd655c0 /fs/inode.c | |
parent | fs: document and rename fsid helpers (diff) | |
download | linux-8e5389132ab429604c1a2459b52f0c849a71cc61.tar.xz linux-8e5389132ab429604c1a2459b52f0c849a71cc61.zip |
fs: introduce fsuidgid_has_mapping() helper
Don't open-code the checks and instead move them into a clean little
helper we can call. This also reduces the risk that if we ever change
something we forget to change all locations.
Link: https://lore.kernel.org/r/20210320122623.599086-4-christian.brauner@ubuntu.com
Inspired-by: Vivek Goyal <vgoyal@redhat.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: linux-fsdevel@vger.kernel.org
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Diffstat (limited to 'fs/inode.c')
0 files changed, 0 insertions, 0 deletions