Skip to content

Commit 0485a18

Browse files
committed
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>
1 parent dcb6fa3 commit 0485a18

4 files changed

Lines changed: 10 additions & 7 deletions

File tree

fs/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ obj-y := open.o read_write.o file_table.o super.o \
1414
seq_file.o xattr.o libfs.o fs-writeback.o \
1515
pnode.o splice.o sync.o utimes.o d_path.o \
1616
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 \
1818
kernel_read_file.o mnt_idmapping.o remap_range.o pidfs.o \
1919
file_attr.o
2020

fs/fs_types.c renamed to fs/fs_dirent.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// SPDX-License-Identifier: GPL-2.0
2-
#include <linux/fs.h>
2+
#include <linux/fs_dirent.h>
33
#include <linux/export.h>
44

55
/*

include/linux/fs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
#include <linux/uuid.h>
3838
#include <linux/errseq.h>
3939
#include <linux/ioprio.h>
40-
#include <linux/fs_types.h>
40+
#include <linux/fs_dirent.h>
4141
#include <linux/build_bug.h>
4242
#include <linux/stddef.h>
4343
#include <linux/mount.h>
Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
/* 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>
47

58
/*
69
* This is a header for the common implementation of dirent
@@ -66,10 +69,10 @@
6669

6770
/*
6871
* declarations for helper functions, accompanying implementation
69-
* is in fs/fs_types.c
72+
* is in fs/fs_dirent.c
7073
*/
7174
extern unsigned char fs_ftype_to_dtype(unsigned int filetype);
7275
extern unsigned char fs_umode_to_ftype(umode_t mode);
7376
extern unsigned char fs_umode_to_dtype(umode_t mode);
7477

75-
#endif
78+
#endif /* _LINUX_FS_DIRENT_H */

0 commit comments

Comments
 (0)