OpenCloudOS-Kernel/fs/cachefiles
Christian Brauner bb49e9e730
fs: add is_idmapped_mnt() helper
Multiple places open-code the same check to determine whether a given
mount is idmapped. Introduce a simple helper function that can be used
instead. This allows us to get rid of the fragile open-coding. We will
later change the check that is used to determine whether a given mount
is idmapped. Introducing a helper allows us to do this in a single
place instead of doing it for multiple places.

Link: https://lore.kernel.org/r/20211123114227.3124056-2-brauner@kernel.org (v1)
Link: https://lore.kernel.org/r/20211130121032.3753852-2-brauner@kernel.org (v2)
Link: https://lore.kernel.org/r/20211203111707.3901969-2-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>
2021-12-03 18:44:06 +01:00
..
Kconfig fscache, cachefiles: Remove the histogram stuff 2021-08-27 13:34:02 +01:00
Makefile fscache, cachefiles: Remove the histogram stuff 2021-08-27 13:34:02 +01:00
bind.c fs: add is_idmapped_mnt() helper 2021-12-03 18:44:06 +01:00
daemon.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 36 2019-05-24 17:27:11 +02:00
interface.c cachefiles: Change %p in format strings to something else 2021-08-27 13:34:02 +01:00
internal.h fscache, cachefiles: Remove the histogram stuff 2021-08-27 13:34:02 +01:00
io.c fs: get rid of the res2 iocb->ki_complete argument 2021-10-25 10:36:24 -06:00
key.c cachefiles: Change %p in format strings to something else 2021-08-27 13:34:02 +01:00
main.c fscache, cachefiles: Remove the histogram stuff 2021-08-27 13:34:02 +01:00
namei.c cachefiles: Change %p in format strings to something else 2021-08-27 13:34:02 +01:00
rdwr.c mm/filemap: Convert page wait queues to be folios 2021-09-27 09:27:30 -04:00
security.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 36 2019-05-24 17:27:11 +02:00
xattr.c cachefiles: Change %p in format strings to something else 2021-08-27 13:34:02 +01:00