aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/async-thread.c
diff options
context:
space:
mode:
authorYangtao Li <[email protected]>2025-04-17 14:26:49 +0000
committerDavid Sterba <[email protected]>2025-05-15 12:30:47 +0000
commit023beaeca6127ca6b85e1576f489185b6d95a66e (patch)
tree45453c0f0ba4548b20bf556079076fb78899e826 /fs/btrfs/async-thread.c
parentbtrfs: use bvec_kmap_local() in btrfs_decompress_buf2page() (diff)
downloadkernel-023beaeca6127ca6b85e1576f489185b6d95a66e.tar.gz
kernel-023beaeca6127ca6b85e1576f489185b6d95a66e.zip
btrfs: remove BTRFS_REF_LAST from enum btrfs_ref_type
Commit b28b1f0ce44c ("btrfs: delayed-ref: Introduce better documented delayed ref structures") introduced BTRFS_REF_LAST, which can be used for sanity checking, e.g. in switch/case or for loops. In btrfs_ref_type() there is an assertion ASSERT(ref->type == BTRFS_REF_DATA || ref->type == BTRFS_REF_METADATA); to validate the values so we don't need the ending enum. Signed-off-by: Yangtao Li <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/async-thread.c')
0 files changed, 0 insertions, 0 deletions