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"
Showing the changes to include/uapi/linux (1 of 4 files). Show all
Unified · Split
| @@ -307,6 +307,8 @@ · 306 unmodified lines | |||
| 307 | * | 307 | * |
| 308 | * Used by: | 308 | * Used by: |
| 309 | * struct btrfs_dir_item.type | 309 | * 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 0 | 313 | #define BTRFS_FT_UNKNOWN 0 |
| 312 | #define BTRFS_FT_REG_FILE 1 | 314 | #define BTRFS_FT_REG_FILE 1 |