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 | 308 | * Used by: |
| 309 | 309 | * struct btrfs_dir_item.type |
| 310 | + * | |
| 311 | + * Values 0..7 must match common file type values in fs_types.h. | |
| 310 | 312 | */ |
| 311 | 313 | #define BTRFS_FT_UNKNOWN 0 |
| 312 | 314 | #define BTRFS_FT_REG_FILE 1 |