aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/volumes.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/volumes.h')
-rw-r--r--fs/btrfs/volumes.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/btrfs/volumes.h b/fs/btrfs/volumes.h
index b30d018fa359..f79d532fedb0 100644
--- a/fs/btrfs/volumes.h
+++ b/fs/btrfs/volumes.h
@@ -95,6 +95,8 @@ struct btrfs_device {
95 */ 95 */
96 u64 commit_total_bytes; 96 u64 commit_total_bytes;
97 97
98 /* bytes used on the current transaction */
99 u64 commit_bytes_used;
98 /* 100 /*
99 * used to manage the device which is resized 101 * used to manage the device which is resized
100 * 102 *
@@ -420,4 +422,6 @@ static inline void btrfs_dev_stat_reset(struct btrfs_device *dev,
420} 422}
421 423
422void btrfs_update_commit_device_size(struct btrfs_fs_info *fs_info); 424void btrfs_update_commit_device_size(struct btrfs_fs_info *fs_info);
425void btrfs_update_commit_device_bytes_used(struct btrfs_root *root,
426 struct btrfs_transaction *transaction);
423#endif 427#endif