summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPhillip Potter <phil@philpotter.co.uk>2019-03-26 21:39:34 +0000
committerDavid Sterba <dsterba@suse.com>2019-04-29 19:02:29 +0200
commit7d157c3d4810cfb9ea1bb0977e8e2db02032173a (patch)
tree144bf4d1aca90cbc1a6a4e8e73a1239c5f4dbc3a /include
parent7984ae52bbf75def1d7fcbf4c902e8f787e1ef9d (diff)
downloadlinux-7d157c3d4810cfb9ea1bb0977e8e2db02032173a.tar.bz2
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')
-rw-r--r--include/uapi/linux/btrfs_tree.h2
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