]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit - include/linux/fs.h
fs: common implementation of file type
authorPhillip Potter <phil@philpotter.co.uk>
Mon, 21 Jan 2019 00:54:27 +0000 (00:54 +0000)
committerJan Kara <jack@suse.cz>
Mon, 21 Jan 2019 16:48:13 +0000 (17:48 +0100)
commitbbe7449e2599b58cf7b995461e2189998111f907
tree45fb7c60c894558ebbeda7c2c444447739c8cd02
parent49a57857aeea06ca831043acbb0fa5e0f50602fd
fs: common implementation of file type

Many file systems use a copy&paste implementation
of dirent to on-disk file type conversions.

Create a common implementation to be used by file systems
with some useful conversion helpers to reduce open coded
file type conversions in file system code.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Phillip Potter <phil@philpotter.co.uk>
Signed-off-by: Jan Kara <jack@suse.cz>
MAINTAINERS
fs/Makefile
fs/fs_types.c [new file with mode: 0644]
include/linux/fs.h
include/linux/fs_types.h [new file with mode: 0644]