Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fs: rename fs_types.h to fs_dirent.h

We will split out a bunch of types into a separate header.
So free up the appropriate name for it.

Link: https://patch.msgid.link/20251104-work-fs-header-v1-1-fb39a2efe39e@kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>

+10 -7
+1 -1
fs/Makefile
··· 14 14 seq_file.o xattr.o libfs.o fs-writeback.o \ 15 15 pnode.o splice.o sync.o utimes.o d_path.o \ 16 16 stack.o fs_struct.o statfs.o fs_pin.o nsfs.o \ 17 - fs_types.o fs_context.o fs_parser.o fsopen.o init.o \ 17 + fs_dirent.o fs_context.o fs_parser.o fsopen.o init.o \ 18 18 kernel_read_file.o mnt_idmapping.o remap_range.o pidfs.o \ 19 19 file_attr.o 20 20
+1 -1
fs/fs_types.c fs/fs_dirent.c
··· 1 1 // SPDX-License-Identifier: GPL-2.0 2 - #include <linux/fs.h> 2 + #include <linux/fs_dirent.h> 3 3 #include <linux/export.h> 4 4 5 5 /*
+1 -1
include/linux/fs.h
··· 37 37 #include <linux/uuid.h> 38 38 #include <linux/errseq.h> 39 39 #include <linux/ioprio.h> 40 - #include <linux/fs_types.h> 40 + #include <linux/fs_dirent.h> 41 41 #include <linux/build_bug.h> 42 42 #include <linux/stddef.h> 43 43 #include <linux/mount.h>
+7 -4
include/linux/fs_types.h include/linux/fs_dirent.h
··· 1 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 - #ifndef _LINUX_FS_TYPES_H 3 - #define _LINUX_FS_TYPES_H 2 + #ifndef _LINUX_FS_DIRENT_H 3 + #define _LINUX_FS_DIRENT_H 4 + 5 + #include <linux/stat.h> 6 + #include <linux/types.h> 4 7 5 8 /* 6 9 * This is a header for the common implementation of dirent ··· 69 66 70 67 /* 71 68 * declarations for helper functions, accompanying implementation 72 - * is in fs/fs_types.c 69 + * is in fs/fs_dirent.c 73 70 */ 74 71 extern unsigned char fs_ftype_to_dtype(unsigned int filetype); 75 72 extern unsigned char fs_umode_to_ftype(umode_t mode); 76 73 extern unsigned char fs_umode_to_dtype(umode_t mode); 77 74 78 - #endif 75 + #endif /* _LINUX_FS_DIRENT_H */