diff options
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 4403e5643d43..4acd4c611efa 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h | |||
@@ -398,13 +398,15 @@ struct btrfs_super_block { | |||
398 | #define BTRFS_FEATURE_INCOMPAT_MIXED_BACKREF (1ULL << 0) | 398 | #define BTRFS_FEATURE_INCOMPAT_MIXED_BACKREF (1ULL << 0) |
399 | #define BTRFS_FEATURE_INCOMPAT_DEFAULT_SUBVOL (1ULL << 1) | 399 | #define BTRFS_FEATURE_INCOMPAT_DEFAULT_SUBVOL (1ULL << 1) |
400 | #define BTRFS_FEATURE_INCOMPAT_MIXED_GROUPS (1ULL << 2) | 400 | #define BTRFS_FEATURE_INCOMPAT_MIXED_GROUPS (1ULL << 2) |
401 | #define BTRFS_FEATURE_INCOMPAT_COMPRESS_LZO (1ULL << 3) | ||
401 | 402 | ||
402 | #define BTRFS_FEATURE_COMPAT_SUPP 0ULL | 403 | #define BTRFS_FEATURE_COMPAT_SUPP 0ULL |
403 | #define BTRFS_FEATURE_COMPAT_RO_SUPP 0ULL | 404 | #define BTRFS_FEATURE_COMPAT_RO_SUPP 0ULL |
404 | #define BTRFS_FEATURE_INCOMPAT_SUPP \ | 405 | #define BTRFS_FEATURE_INCOMPAT_SUPP \ |
405 | (BTRFS_FEATURE_INCOMPAT_MIXED_BACKREF | \ | 406 | (BTRFS_FEATURE_INCOMPAT_MIXED_BACKREF | \ |
406 | BTRFS_FEATURE_INCOMPAT_DEFAULT_SUBVOL | \ | 407 | BTRFS_FEATURE_INCOMPAT_DEFAULT_SUBVOL | \ |
407 | BTRFS_FEATURE_INCOMPAT_MIXED_GROUPS) | 408 | BTRFS_FEATURE_INCOMPAT_MIXED_GROUPS | \ |
409 | BTRFS_FEATURE_INCOMPAT_COMPRESS_LZO) | ||
408 | 410 | ||
409 | /* | 411 | /* |
410 | * A leaf is full of items. offset and size tell us where to find | 412 | * A leaf is full of items. offset and size tell us where to find |
@@ -551,9 +553,11 @@ struct btrfs_timespec { | |||
551 | } __attribute__ ((__packed__)); | 553 | } __attribute__ ((__packed__)); |
552 | 554 | ||
553 | enum btrfs_compression_type { | 555 | enum btrfs_compression_type { |
554 | BTRFS_COMPRESS_NONE = 0, | 556 | BTRFS_COMPRESS_NONE = 0, |
555 | BTRFS_COMPRESS_ZLIB = 1, | 557 | BTRFS_COMPRESS_ZLIB = 1, |
556 | BTRFS_COMPRESS_LAST = 2, | 558 | BTRFS_COMPRESS_LZO = 2, |
559 | BTRFS_COMPRESS_TYPES = 2, | ||
560 | BTRFS_COMPRESS_LAST = 3, | ||
557 | }; | 561 | }; |
558 | 562 | ||
559 | struct btrfs_inode_item { | 563 | struct btrfs_inode_item { |
@@ -897,7 +901,8 @@ struct btrfs_fs_info { | |||
897 | */ | 901 | */ |
898 | u64 last_trans_log_full_commit; | 902 | u64 last_trans_log_full_commit; |
899 | u64 open_ioctl_trans; | 903 | u64 open_ioctl_trans; |
900 | unsigned long mount_opt; | 904 | unsigned long mount_opt:20; |
905 | unsigned long compress_type:4; | ||
901 | u64 max_inline; | 906 | u64 max_inline; |
902 | u64 alloc_start; | 907 | u64 alloc_start; |
903 | struct btrfs_transaction *running_transaction; | 908 | struct btrfs_transaction *running_transaction; |