]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
fs: rename fs_types.h to fs_dirent.h
authorChristian Brauner <brauner@kernel.org>
Tue, 4 Nov 2025 14:46:32 +0000 (15:46 +0100)
committerChristian Brauner <brauner@kernel.org>
Wed, 5 Nov 2025 08:51:30 +0000 (09:51 +0100)
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>
fs/Makefile
fs/fs_dirent.c [moved from fs/fs_types.c with 98% similarity]
include/linux/fs.h
include/linux/fs_dirent.h [moved from include/linux/fs_types.h with 92% similarity]

index e3523ab2e587131b1591414fc8a6c43c990e4430..a04274a3c8542048e9ce5b84c74be91d7b2fb5d6 100644 (file)
@@ -14,7 +14,7 @@ obj-y :=      open.o read_write.o file_table.o super.o \
                seq_file.o xattr.o libfs.o fs-writeback.o \
                pnode.o splice.o sync.o utimes.o d_path.o \
                stack.o fs_struct.o statfs.o fs_pin.o nsfs.o \
-               fs_types.o fs_context.o fs_parser.o fsopen.o init.o \
+               fs_dirent.o fs_context.o fs_parser.o fsopen.o init.o \
                kernel_read_file.o mnt_idmapping.o remap_range.o pidfs.o \
                file_attr.o
 
similarity index 98%
rename from fs/fs_types.c
rename to fs/fs_dirent.c
index 78365e5dc08caa3aac60b2c0e11b6fc4597cdd42..e5e08f21381653114e66f1841138c6452522fa87 100644 (file)
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0
-#include <linux/fs.h>
+#include <linux/fs_dirent.h>
 #include <linux/export.h>
 
 /*
index c895146c1444be36e0a779df55622cc38c9419ff..3c971ddace418a8ff5ff7e944862c5d373a73073 100644 (file)
@@ -37,7 +37,7 @@
 #include <linux/uuid.h>
 #include <linux/errseq.h>
 #include <linux/ioprio.h>
-#include <linux/fs_types.h>
+#include <linux/fs_dirent.h>
 #include <linux/build_bug.h>
 #include <linux/stddef.h>
 #include <linux/mount.h>
similarity index 92%
rename from include/linux/fs_types.h
rename to include/linux/fs_dirent.h
index 54816791196f0695871532250f35068f55afae88..92f75c5bac19022d2e28335d7722955764895ff3 100644 (file)
@@ -1,6 +1,9 @@
 /* SPDX-License-Identifier: GPL-2.0 */
-#ifndef _LINUX_FS_TYPES_H
-#define _LINUX_FS_TYPES_H
+#ifndef _LINUX_FS_DIRENT_H
+#define _LINUX_FS_DIRENT_H
+
+#include <linux/stat.h>
+#include <linux/types.h>
 
 /*
  * This is a header for the common implementation of dirent
 
 /*
  * declarations for helper functions, accompanying implementation
- * is in fs/fs_types.c
+ * is in fs/fs_dirent.c
  */
 extern unsigned char fs_ftype_to_dtype(unsigned int filetype);
 extern unsigned char fs_umode_to_ftype(umode_t mode);
 extern unsigned char fs_umode_to_dtype(umode_t mode);
 
-#endif
+#endif /* _LINUX_FS_DIRENT_H */