diff options
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index b7e2c1c1ef36..be91397f4e92 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h | |||
@@ -1259,11 +1259,19 @@ struct btrfs_block_group_cache { | |||
1259 | spinlock_t lock; | 1259 | spinlock_t lock; |
1260 | u64 pinned; | 1260 | u64 pinned; |
1261 | u64 reserved; | 1261 | u64 reserved; |
1262 | u64 delalloc_bytes; | ||
1262 | u64 bytes_super; | 1263 | u64 bytes_super; |
1263 | u64 flags; | 1264 | u64 flags; |
1264 | u64 sectorsize; | 1265 | u64 sectorsize; |
1265 | u64 cache_generation; | 1266 | u64 cache_generation; |
1266 | 1267 | ||
1268 | /* | ||
1269 | * It is just used for the delayed data space allocation because | ||
1270 | * only the data space allocation and the relative metadata update | ||
1271 | * can be done cross the transaction. | ||
1272 | */ | ||
1273 | struct rw_semaphore data_rwsem; | ||
1274 | |||
1267 | /* for raid56, this is a full stripe, without parity */ | 1275 | /* for raid56, this is a full stripe, without parity */ |
1268 | unsigned long full_stripe_len; | 1276 | unsigned long full_stripe_len; |
1269 | 1277 | ||
@@ -3316,7 +3324,7 @@ int btrfs_alloc_logged_file_extent(struct btrfs_trans_handle *trans, | |||
3316 | struct btrfs_key *ins); | 3324 | struct btrfs_key *ins); |
3317 | int btrfs_reserve_extent(struct btrfs_root *root, u64 num_bytes, | 3325 | int btrfs_reserve_extent(struct btrfs_root *root, u64 num_bytes, |
3318 | u64 min_alloc_size, u64 empty_size, u64 hint_byte, | 3326 | u64 min_alloc_size, u64 empty_size, u64 hint_byte, |
3319 | struct btrfs_key *ins, int is_data); | 3327 | struct btrfs_key *ins, int is_data, int delalloc); |
3320 | int btrfs_inc_ref(struct btrfs_trans_handle *trans, struct btrfs_root *root, | 3328 | int btrfs_inc_ref(struct btrfs_trans_handle *trans, struct btrfs_root *root, |
3321 | struct extent_buffer *buf, int full_backref, int no_quota); | 3329 | struct extent_buffer *buf, int full_backref, int no_quota); |
3322 | int btrfs_dec_ref(struct btrfs_trans_handle *trans, struct btrfs_root *root, | 3330 | int btrfs_dec_ref(struct btrfs_trans_handle *trans, struct btrfs_root *root, |
@@ -3330,7 +3338,8 @@ int btrfs_free_extent(struct btrfs_trans_handle *trans, | |||
3330 | u64 bytenr, u64 num_bytes, u64 parent, u64 root_objectid, | 3338 | u64 bytenr, u64 num_bytes, u64 parent, u64 root_objectid, |
3331 | u64 owner, u64 offset, int no_quota); | 3339 | u64 owner, u64 offset, int no_quota); |
3332 | 3340 | ||
3333 | int btrfs_free_reserved_extent(struct btrfs_root *root, u64 start, u64 len); | 3341 | int btrfs_free_reserved_extent(struct btrfs_root *root, u64 start, u64 len, |
3342 | int delalloc); | ||
3334 | int btrfs_free_and_pin_reserved_extent(struct btrfs_root *root, | 3343 | int btrfs_free_and_pin_reserved_extent(struct btrfs_root *root, |
3335 | u64 start, u64 len); | 3344 | u64 start, u64 len); |
3336 | void btrfs_prepare_extent_commit(struct btrfs_trans_handle *trans, | 3345 | void btrfs_prepare_extent_commit(struct btrfs_trans_handle *trans, |