diff options
author | Phillip Potter <phil@philpotter.co.uk> | 2019-03-26 21:39:34 +0000 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2019-04-29 19:02:29 +0200 |
commit | 7d157c3d4810cfb9ea1bb0977e8e2db02032173a (patch) | |
tree | 144bf4d1aca90cbc1a6a4e8e73a1239c5f4dbc3a /include/uapi/linux/btrfs_tree.h | |
parent | 7984ae52bbf75def1d7fcbf4c902e8f787e1ef9d (diff) | |
download | linux-stable-7d157c3d4810cfb9ea1bb0977e8e2db02032173a.tar.gz linux-stable-7d157c3d4810cfb9ea1bb0977e8e2db02032173a.tar.bz2 linux-stable-7d157c3d4810cfb9ea1bb0977e8e2db02032173a.zip |
btrfs: use common file type conversion
Deduplicate the btrfs file type conversion implementation - file systems
that use the same file types as defined by POSIX do not need to define
their own versions and can use the common helper functions decared in
fs_types.h and implemented in fs_types.c
Common implementation can be found via commit:
bbe7449e2599 "fs: common implementation of file type"
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Phillip Potter <phil@philpotter.co.uk>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'include/uapi/linux/btrfs_tree.h')
-rw-r--r-- | include/uapi/linux/btrfs_tree.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/btrfs_tree.h b/include/uapi/linux/btrfs_tree.h index e974f4bb5378..421239b98db2 100644 --- a/include/uapi/linux/btrfs_tree.h +++ b/include/uapi/linux/btrfs_tree.h @@ -307,6 +307,8 @@ * * Used by: * struct btrfs_dir_item.type + * + * Values 0..7 must match common file type values in fs_types.h. */ #define BTRFS_FT_UNKNOWN 0 #define BTRFS_FT_REG_FILE 1 |