diff options
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index bc96c03dd259..4c48df572bd6 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h | |||
@@ -609,6 +609,7 @@ struct btrfs_path { | |||
609 | unsigned int skip_locking:1; | 609 | unsigned int skip_locking:1; |
610 | unsigned int leave_spinning:1; | 610 | unsigned int leave_spinning:1; |
611 | unsigned int search_commit_root:1; | 611 | unsigned int search_commit_root:1; |
612 | unsigned int need_commit_sem:1; | ||
612 | }; | 613 | }; |
613 | 614 | ||
614 | /* | 615 | /* |
@@ -986,7 +987,8 @@ struct btrfs_dev_replace_item { | |||
986 | #define BTRFS_BLOCK_GROUP_RAID10 (1ULL << 6) | 987 | #define BTRFS_BLOCK_GROUP_RAID10 (1ULL << 6) |
987 | #define BTRFS_BLOCK_GROUP_RAID5 (1ULL << 7) | 988 | #define BTRFS_BLOCK_GROUP_RAID5 (1ULL << 7) |
988 | #define BTRFS_BLOCK_GROUP_RAID6 (1ULL << 8) | 989 | #define BTRFS_BLOCK_GROUP_RAID6 (1ULL << 8) |
989 | #define BTRFS_BLOCK_GROUP_RESERVED BTRFS_AVAIL_ALLOC_BIT_SINGLE | 990 | #define BTRFS_BLOCK_GROUP_RESERVED (BTRFS_AVAIL_ALLOC_BIT_SINGLE | \ |
991 | BTRFS_SPACE_INFO_GLOBAL_RSV) | ||
990 | 992 | ||
991 | enum btrfs_raid_types { | 993 | enum btrfs_raid_types { |
992 | BTRFS_RAID_RAID10, | 994 | BTRFS_RAID_RAID10, |
@@ -1018,6 +1020,12 @@ enum btrfs_raid_types { | |||
1018 | */ | 1020 | */ |
1019 | #define BTRFS_AVAIL_ALLOC_BIT_SINGLE (1ULL << 48) | 1021 | #define BTRFS_AVAIL_ALLOC_BIT_SINGLE (1ULL << 48) |
1020 | 1022 | ||
1023 | /* | ||
1024 | * A fake block group type that is used to communicate global block reserve | ||
1025 | * size to userspace via the SPACE_INFO ioctl. | ||
1026 | */ | ||
1027 | #define BTRFS_SPACE_INFO_GLOBAL_RSV (1ULL << 49) | ||
1028 | |||
1021 | #define BTRFS_EXTENDED_PROFILE_MASK (BTRFS_BLOCK_GROUP_PROFILE_MASK | \ | 1029 | #define BTRFS_EXTENDED_PROFILE_MASK (BTRFS_BLOCK_GROUP_PROFILE_MASK | \ |
1022 | BTRFS_AVAIL_ALLOC_BIT_SINGLE) | 1030 | BTRFS_AVAIL_ALLOC_BIT_SINGLE) |
1023 | 1031 | ||
@@ -1440,7 +1448,7 @@ struct btrfs_fs_info { | |||
1440 | */ | 1448 | */ |
1441 | struct mutex ordered_extent_flush_mutex; | 1449 | struct mutex ordered_extent_flush_mutex; |
1442 | 1450 | ||
1443 | struct rw_semaphore extent_commit_sem; | 1451 | struct rw_semaphore commit_root_sem; |
1444 | 1452 | ||
1445 | struct rw_semaphore cleanup_work_sem; | 1453 | struct rw_semaphore cleanup_work_sem; |
1446 | 1454 | ||
@@ -1711,7 +1719,6 @@ struct btrfs_root { | |||
1711 | struct btrfs_block_rsv *block_rsv; | 1719 | struct btrfs_block_rsv *block_rsv; |
1712 | 1720 | ||
1713 | /* free ino cache stuff */ | 1721 | /* free ino cache stuff */ |
1714 | struct mutex fs_commit_mutex; | ||
1715 | struct btrfs_free_space_ctl *free_ino_ctl; | 1722 | struct btrfs_free_space_ctl *free_ino_ctl; |
1716 | enum btrfs_caching_type cached; | 1723 | enum btrfs_caching_type cached; |
1717 | spinlock_t cache_lock; | 1724 | spinlock_t cache_lock; |