block-group.h (0fdc50dfab47d525b71a9f0d8310746cdc0c09c5) | block-group.h (6b7304af62d02d77d740defd4cfddf2ef3188067) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0 */ 2 3#ifndef BTRFS_BLOCK_GROUP_H 4#define BTRFS_BLOCK_GROUP_H 5 6#include "free-space-cache.h" 7 8enum btrfs_disk_cache_state { --- 115 unchanged lines hidden (view full) --- 124 struct list_head cluster_list; 125 126 /* For delayed block group creation or deletion of empty block groups */ 127 struct list_head bg_list; 128 129 /* For read-only block groups */ 130 struct list_head ro_list; 131 | 1/* SPDX-License-Identifier: GPL-2.0 */ 2 3#ifndef BTRFS_BLOCK_GROUP_H 4#define BTRFS_BLOCK_GROUP_H 5 6#include "free-space-cache.h" 7 8enum btrfs_disk_cache_state { --- 115 unchanged lines hidden (view full) --- 124 struct list_head cluster_list; 125 126 /* For delayed block group creation or deletion of empty block groups */ 127 struct list_head bg_list; 128 129 /* For read-only block groups */ 130 struct list_head ro_list; 131 |
132 /* 133 * When non-zero it means the block group's logical address and its 134 * device extents can not be reused for future block group allocations 135 * until the counter goes down to 0. This is to prevent them from being 136 * reused while some task is still using the block group after it was 137 * deleted - we want to make sure they can only be reused for new block 138 * groups after that task is done with the deleted block group. 139 */ 140 atomic_t frozen; 141 |
|
132 /* For discard operations */ | 142 /* For discard operations */ |
133 atomic_t trimming; | |
134 struct list_head discard_list; 135 int discard_index; 136 u64 discard_eligible_time; 137 u64 discard_cursor; 138 enum btrfs_discard_state discard_state; 139 140 /* For dirty block groups */ 141 struct list_head dirty_list; --- 150 unchanged lines hidden --- | 143 struct list_head discard_list; 144 int discard_index; 145 u64 discard_eligible_time; 146 u64 discard_cursor; 147 enum btrfs_discard_state discard_state; 148 149 /* For dirty block groups */ 150 struct list_head dirty_list; --- 150 unchanged lines hidden --- |