History

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"

Phillip Potter committed 7 years ago

Commit 7d157c31 parent 7984ae54 files · +18 −20Browse files

Showing the changes to include/uapi/linux (1 of 4 files). Show all

Unified · Split

include/uapi/linux/btrfs_tree.h+2−0
@@ -307,6 +307,8 @@ · 306 unmodified lines
307 *307 *
308 * Used by:308 * Used by:
309 * struct btrfs_dir_item.type309 * struct btrfs_dir_item.type
310 *
311 * Values 0..7 must match common file type values in fs_types.h.
310 */312 */
311#define BTRFS_FT_UNKNOWN 0313#define BTRFS_FT_UNKNOWN 0
312#define BTRFS_FT_REG_FILE 1314#define BTRFS_FT_REG_FILE 1