* [PATCH] btrfs: move ref-verify of btrfs_init_data_ref under CONFIG_BTRFS_DEBUG
@ 2025-08-26 12:29 Lukas Bulwahn
2025-08-26 13:11 ` David Sterba
0 siblings, 1 reply; 2+ messages in thread
From: Lukas Bulwahn @ 2025-08-26 12:29 UTC (permalink / raw)
To: Chris Mason, Josef Bacik, David Sterba, Leo Martins, linux-btrfs
Cc: kernel-janitors, linux-kernel, Lukas Bulwahn
From: Lukas Bulwahn <lukas.bulwahn@redhat.com>
Commit dc9025c1a4d8 ("btrfs: move ref-verify under CONFIG_BTRFS_DEBUG")
removes config BTRFS_FS_REF_VERIFY and adds its functionality under config
BTRFS_DEBUG. This change misses a reference to BTRFS_FS_REF_VERIFY in the
btrfs_init_data_ref() function, though.
Replace this reference to BTRFS_FS_REF_VERIFY in the btrfs_init_data_ref()
with BTRFS_DEBUG.
Fixes: dc9025c1a4d8 ("btrfs: move ref-verify under CONFIG_BTRFS_DEBUG")
Signed-off-by: Lukas Bulwahn <lukas.bulwahn@redhat.com>
---
fs/btrfs/delayed-ref.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/btrfs/delayed-ref.c b/fs/btrfs/delayed-ref.c
index f91062fc1b0b..6170803d8a1b 100644
--- a/fs/btrfs/delayed-ref.c
+++ b/fs/btrfs/delayed-ref.c
@@ -969,7 +969,7 @@ void btrfs_init_tree_ref(struct btrfs_ref *generic_ref, int level, u64 mod_root,
void btrfs_init_data_ref(struct btrfs_ref *generic_ref, u64 ino, u64 offset,
u64 mod_root, bool skip_qgroup)
{
-#ifdef CONFIG_BTRFS_FS_REF_VERIFY
+#ifdef CONFIG_BTRFS_DEBUG
/* If @real_root not set, use @root as fallback */
generic_ref->real_root = mod_root ?: generic_ref->ref_root;
#endif
--
2.50.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] btrfs: move ref-verify of btrfs_init_data_ref under CONFIG_BTRFS_DEBUG
2025-08-26 12:29 [PATCH] btrfs: move ref-verify of btrfs_init_data_ref under CONFIG_BTRFS_DEBUG Lukas Bulwahn
@ 2025-08-26 13:11 ` David Sterba
0 siblings, 0 replies; 2+ messages in thread
From: David Sterba @ 2025-08-26 13:11 UTC (permalink / raw)
To: Lukas Bulwahn
Cc: Chris Mason, Josef Bacik, David Sterba, Leo Martins, linux-btrfs,
kernel-janitors, linux-kernel, Lukas Bulwahn
On Tue, Aug 26, 2025 at 02:29:01PM +0200, Lukas Bulwahn wrote:
> From: Lukas Bulwahn <lukas.bulwahn@redhat.com>
>
> Commit dc9025c1a4d8 ("btrfs: move ref-verify under CONFIG_BTRFS_DEBUG")
> removes config BTRFS_FS_REF_VERIFY and adds its functionality under config
> BTRFS_DEBUG. This change misses a reference to BTRFS_FS_REF_VERIFY in the
> btrfs_init_data_ref() function, though.
>
> Replace this reference to BTRFS_FS_REF_VERIFY in the btrfs_init_data_ref()
> with BTRFS_DEBUG.
>
> Fixes: dc9025c1a4d8 ("btrfs: move ref-verify under CONFIG_BTRFS_DEBUG")
> Signed-off-by: Lukas Bulwahn <lukas.bulwahn@redhat.com>
Thanks, folded to the patch because it's in the development queue.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-08-26 13:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-26 12:29 [PATCH] btrfs: move ref-verify of btrfs_init_data_ref under CONFIG_BTRFS_DEBUG Lukas Bulwahn
2025-08-26 13:11 ` David Sterba
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).