mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-12-27 10:01:39 -05:00
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>
This commit is contained in:
@@ -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 \
|
seq_file.o xattr.o libfs.o fs-writeback.o \
|
||||||
pnode.o splice.o sync.o utimes.o d_path.o \
|
pnode.o splice.o sync.o utimes.o d_path.o \
|
||||||
stack.o fs_struct.o statfs.o fs_pin.o nsfs.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 \
|
kernel_read_file.o mnt_idmapping.o remap_range.o pidfs.o \
|
||||||
file_attr.o
|
file_attr.o
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// SPDX-License-Identifier: GPL-2.0
|
// SPDX-License-Identifier: GPL-2.0
|
||||||
#include <linux/fs.h>
|
#include <linux/fs_dirent.h>
|
||||||
#include <linux/export.h>
|
#include <linux/export.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -37,7 +37,7 @@
|
|||||||
#include <linux/uuid.h>
|
#include <linux/uuid.h>
|
||||||
#include <linux/errseq.h>
|
#include <linux/errseq.h>
|
||||||
#include <linux/ioprio.h>
|
#include <linux/ioprio.h>
|
||||||
#include <linux/fs_types.h>
|
#include <linux/fs_dirent.h>
|
||||||
#include <linux/build_bug.h>
|
#include <linux/build_bug.h>
|
||||||
#include <linux/stddef.h>
|
#include <linux/stddef.h>
|
||||||
#include <linux/mount.h>
|
#include <linux/mount.h>
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
/* SPDX-License-Identifier: GPL-2.0 */
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
#ifndef _LINUX_FS_TYPES_H
|
#ifndef _LINUX_FS_DIRENT_H
|
||||||
#define _LINUX_FS_TYPES_H
|
#define _LINUX_FS_DIRENT_H
|
||||||
|
|
||||||
|
#include <linux/stat.h>
|
||||||
|
#include <linux/types.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This is a header for the common implementation of dirent
|
* This is a header for the common implementation of dirent
|
||||||
@@ -66,10 +69,10 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* declarations for helper functions, accompanying implementation
|
* 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_ftype_to_dtype(unsigned int filetype);
|
||||||
extern unsigned char fs_umode_to_ftype(umode_t mode);
|
extern unsigned char fs_umode_to_ftype(umode_t mode);
|
||||||
extern unsigned char fs_umode_to_dtype(umode_t mode);
|
extern unsigned char fs_umode_to_dtype(umode_t mode);
|
||||||
|
|
||||||
#endif
|
#endif /* _LINUX_FS_DIRENT_H */
|
||||||
Reference in New Issue
Block a user