linux/fs/configfs
Jeff Layton 364595a685
fs: consolidate duplicate dt_type helpers
There are three copies of the same dt_type helper sprinkled around the
tree. Convert them to use the common fs_umode_to_dtype function instead,
which has the added advantage of properly returning DT_UNKNOWN when
given a mode that contains an unrecognized type.

Cc: Chuck Lever <chuck.lever@oracle.com>
Cc: Phillip Potter <phil@philpotter.co.uk>
Suggested-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Christian Brauner <brauner@kernel.org>
Message-Id: <20230330104144.75547-1-jlayton@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
2023-04-03 09:23:54 +02:00
..
configfs_internal.h fs: port ->symlink() to pass mnt_idmap 2023-01-19 09:24:25 +01:00
dir.c fs: consolidate duplicate dt_type helpers 2023-04-03 09:23:54 +02:00
file.c configfs: restore the kernel v5.13 text attribute write behavior 2021-08-09 16:56:00 +02:00
inode.c fs: port ->setattr() to pass mnt_idmap 2023-01-19 09:24:02 +01:00
item.c treewide: remove editor modelines and cruft 2021-05-07 00:26:34 -07:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
mount.c treewide: remove editor modelines and cruft 2021-05-07 00:26:34 -07:00
symlink.c fs: port ->permission() to pass mnt_idmap 2023-01-19 09:24:28 +01:00