Btrfs: account for space used by the super mirrors
[linux-2.6-block.git] / fs / btrfs / ctree.h
index 2b15fb97d23fc7cd22cfabd6af7c6d1d72964b3b..80599b4e42bd350f5e6b7a094c3711a3dd32e8a8 100644 (file)
@@ -674,6 +674,7 @@ struct btrfs_space_info {
        u64 bytes_reserved;     /* total bytes the allocator has reserved for
                                   current allocations */
        u64 bytes_readonly;     /* total bytes that are read only */
+       u64 bytes_super;        /* total bytes reserved for the super blocks */
 
        /* delalloc accounting */
        u64 bytes_delalloc;     /* number of bytes reserved for allocation,
@@ -746,6 +747,7 @@ struct btrfs_block_group_cache {
        spinlock_t lock;
        u64 pinned;
        u64 reserved;
+       u64 bytes_super;
        u64 flags;
        u64 sectorsize;
        int extents_thresh;