diff options
author | Yan, Zheng <zheng.yan@oracle.com> | 2010-05-16 10:49:58 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2010-05-25 10:34:52 -0400 |
commit | 8929ecfa50f266163832eeacfbc3642ed5eb83b6 (patch) | |
tree | e0177748af36d49d5f652cff0e421a8268cf7194 /fs/btrfs/ctree.h | |
parent | 0ca1f7ceb1991099ed5273885ebcf4323948c72e (diff) |
Btrfs: Introduce global metadata reservation
Reserve metadata space for extent tree, checksum tree and root tree
Signed-off-by: Yan Zheng <zheng.yan@oracle.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index d4744192eada..504d5daf2f1c 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h | |||
@@ -683,21 +683,15 @@ struct btrfs_space_info { | |||
683 | u64 bytes_reserved; /* total bytes the allocator has reserved for | 683 | u64 bytes_reserved; /* total bytes the allocator has reserved for |
684 | current allocations */ | 684 | current allocations */ |
685 | u64 bytes_readonly; /* total bytes that are read only */ | 685 | u64 bytes_readonly; /* total bytes that are read only */ |
686 | u64 bytes_super; /* total bytes reserved for the super blocks */ | 686 | |
687 | u64 bytes_root; /* the number of bytes needed to commit a | ||
688 | transaction */ | ||
689 | u64 bytes_may_use; /* number of bytes that may be used for | 687 | u64 bytes_may_use; /* number of bytes that may be used for |
690 | delalloc/allocations */ | 688 | delalloc/allocations */ |
691 | u64 bytes_delalloc; /* number of bytes currently reserved for | ||
692 | delayed allocation */ | ||
693 | u64 disk_used; /* total bytes used on disk */ | 689 | u64 disk_used; /* total bytes used on disk */ |
694 | 690 | ||
695 | int full; /* indicates that we cannot allocate any more | 691 | int full; /* indicates that we cannot allocate any more |
696 | chunks for this space */ | 692 | chunks for this space */ |
697 | int force_alloc; /* set if we need to force a chunk alloc for | 693 | int force_alloc; /* set if we need to force a chunk alloc for |
698 | this space */ | 694 | this space */ |
699 | int force_delalloc; /* make people start doing filemap_flush until | ||
700 | we're under a threshold */ | ||
701 | 695 | ||
702 | struct list_head list; | 696 | struct list_head list; |
703 | 697 | ||