diff options
Diffstat (limited to 'fs/btrfs/delayed-ref.h')
| -rw-r--r-- | fs/btrfs/delayed-ref.h | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/fs/btrfs/delayed-ref.h b/fs/btrfs/delayed-ref.h index d8f244d94925..413927fb9957 100644 --- a/fs/btrfs/delayed-ref.h +++ b/fs/btrfs/delayed-ref.h | |||
| @@ -195,11 +195,6 @@ int btrfs_delayed_ref_lock(struct btrfs_trans_handle *trans, | |||
| 195 | int btrfs_find_ref_cluster(struct btrfs_trans_handle *trans, | 195 | int btrfs_find_ref_cluster(struct btrfs_trans_handle *trans, |
| 196 | struct list_head *cluster, u64 search_start); | 196 | struct list_head *cluster, u64 search_start); |
| 197 | 197 | ||
| 198 | struct seq_list { | ||
| 199 | struct list_head list; | ||
| 200 | u64 seq; | ||
| 201 | }; | ||
| 202 | |||
| 203 | static inline u64 inc_delayed_seq(struct btrfs_delayed_ref_root *delayed_refs) | 198 | static inline u64 inc_delayed_seq(struct btrfs_delayed_ref_root *delayed_refs) |
| 204 | { | 199 | { |
| 205 | assert_spin_locked(&delayed_refs->lock); | 200 | assert_spin_locked(&delayed_refs->lock); |
| @@ -230,25 +225,6 @@ int btrfs_check_delayed_seq(struct btrfs_delayed_ref_root *delayed_refs, | |||
| 230 | u64 seq); | 225 | u64 seq); |
| 231 | 226 | ||
| 232 | /* | 227 | /* |
| 233 | * delayed refs with a ref_seq > 0 must be held back during backref walking. | ||
| 234 | * this only applies to items in one of the fs-trees. for_cow items never need | ||
| 235 | * to be held back, so they won't get a ref_seq number. | ||
| 236 | */ | ||
| 237 | static inline int need_ref_seq(int for_cow, u64 rootid) | ||
| 238 | { | ||
| 239 | if (for_cow) | ||
| 240 | return 0; | ||
| 241 | |||
| 242 | if (rootid == BTRFS_FS_TREE_OBJECTID) | ||
| 243 | return 1; | ||
| 244 | |||
| 245 | if ((s64)rootid >= (s64)BTRFS_FIRST_FREE_OBJECTID) | ||
| 246 | return 1; | ||
| 247 | |||
| 248 | return 0; | ||
| 249 | } | ||
| 250 | |||
| 251 | /* | ||
| 252 | * a node might live in a head or a regular ref, this lets you | 228 | * a node might live in a head or a regular ref, this lets you |
| 253 | * test for the proper type to use. | 229 | * test for the proper type to use. |
| 254 | */ | 230 | */ |
