Re: [PATCH] btrfs: remove BTRFS_REF_LAST from btrfs_ref_type

From: Qu Wenruo
Date: Tue Apr 15 2025 - 04:44:09 EST




在 2025/4/15 18:08, Yangtao Li 写道:
It seems that it has never been used, so remove it.

History please.


Signed-off-by: Yangtao Li <frank.li@xxxxxxxx>
---
fs/btrfs/delayed-ref.h | 1 -
1 file changed, 1 deletion(-)

diff --git a/fs/btrfs/delayed-ref.h b/fs/btrfs/delayed-ref.h
index f5ae880308d3..78cc23837610 100644
--- a/fs/btrfs/delayed-ref.h
+++ b/fs/btrfs/delayed-ref.h
@@ -262,7 +262,6 @@ enum btrfs_ref_type {
BTRFS_REF_NOT_SET,
BTRFS_REF_DATA,
BTRFS_REF_METADATA,
- BTRFS_REF_LAST,

The _LAST or _NR suffix can be utilized to do sanity checks, and this is not part of the on-disk format.

And if this exposed by some automatic tools, please also mention it.

} __packed;
struct btrfs_ref {