aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r--fs/btrfs/ctree.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index 08d9f8d15538..4ddce91cf3f9 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -401,15 +401,16 @@ struct btrfs_path {
401 int locks[BTRFS_MAX_LEVEL]; 401 int locks[BTRFS_MAX_LEVEL];
402 int reada; 402 int reada;
403 /* keep some upper locks as we walk down */ 403 /* keep some upper locks as we walk down */
404 int keep_locks;
405 int skip_locking;
406 int lowest_level; 404 int lowest_level;
407 405
408 /* 406 /*
409 * set by btrfs_split_item, tells search_slot to keep all locks 407 * set by btrfs_split_item, tells search_slot to keep all locks
410 * and to force calls to keep space in the nodes 408 * and to force calls to keep space in the nodes
411 */ 409 */
412 int search_for_split; 410 unsigned int search_for_split:1;
411 unsigned int keep_locks:1;
412 unsigned int skip_locking:1;
413 unsigned int leave_spinning:1;
413}; 414};
414 415
415/* 416/*
@@ -779,6 +780,11 @@ struct btrfs_fs_info {
779 atomic_t throttle_gen; 780 atomic_t throttle_gen;
780 781
781 u64 total_pinned; 782 u64 total_pinned;
783
784 /* protected by the delalloc lock, used to keep from writing
785 * metadata until there is a nice batch
786 */
787 u64 dirty_metadata_bytes;
782 struct list_head dirty_cowonly_roots; 788 struct list_head dirty_cowonly_roots;
783 789
784 struct btrfs_fs_devices *fs_devices; 790 struct btrfs_fs_devices *fs_devices;