* [PATCH] btrfs: fix error message in check_extent_data_ref()
@ 2026-02-17 18:09 Mark Harmstone
2026-02-17 21:03 ` Qu Wenruo
0 siblings, 1 reply; 2+ messages in thread
From: Mark Harmstone @ 2026-02-17 18:09 UTC (permalink / raw)
To: linux-btrfs, wqu; +Cc: Mark Harmstone
Fix a copy-paste error in check_extent_data_ref(): we're printing root
as in the message above, we should be printing objectid.
Signed-off-by: Mark Harmstone <mark@harmstone.com>
Fixes: f333a3c7e832 ("btrfs: tree-checker: validate dref root and objectid")
---
fs/btrfs/tree-checker.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/btrfs/tree-checker.c b/fs/btrfs/tree-checker.c
index 9774779f060b..ac4c4573ee39 100644
--- a/fs/btrfs/tree-checker.c
+++ b/fs/btrfs/tree-checker.c
@@ -1740,7 +1740,7 @@ static int check_extent_data_ref(struct extent_buffer *leaf,
objectid > BTRFS_LAST_FREE_OBJECTID)) {
extent_err(leaf, slot,
"invalid extent data backref objectid value %llu",
- root);
+ objectid);
return -EUCLEAN;
}
if (unlikely(!IS_ALIGNED(offset, leaf->fs_info->sectorsize))) {
--
2.52.0
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] btrfs: fix error message in check_extent_data_ref()
2026-02-17 18:09 [PATCH] btrfs: fix error message in check_extent_data_ref() Mark Harmstone
@ 2026-02-17 21:03 ` Qu Wenruo
0 siblings, 0 replies; 2+ messages in thread
From: Qu Wenruo @ 2026-02-17 21:03 UTC (permalink / raw)
To: Mark Harmstone, linux-btrfs, wqu
在 2026/2/18 04:39, Mark Harmstone 写道:
> Fix a copy-paste error in check_extent_data_ref(): we're printing root
> as in the message above, we should be printing objectid.
>
> Signed-off-by: Mark Harmstone <mark@harmstone.com>
> Fixes: f333a3c7e832 ("btrfs: tree-checker: validate dref root and objectid")
Reviewed-by: Qu Wenruo <wqu@suse.com>
Thanks,
Qu
> ---
> fs/btrfs/tree-checker.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/fs/btrfs/tree-checker.c b/fs/btrfs/tree-checker.c
> index 9774779f060b..ac4c4573ee39 100644
> --- a/fs/btrfs/tree-checker.c
> +++ b/fs/btrfs/tree-checker.c
> @@ -1740,7 +1740,7 @@ static int check_extent_data_ref(struct extent_buffer *leaf,
> objectid > BTRFS_LAST_FREE_OBJECTID)) {
> extent_err(leaf, slot,
> "invalid extent data backref objectid value %llu",
> - root);
> + objectid);
> return -EUCLEAN;
> }
> if (unlikely(!IS_ALIGNED(offset, leaf->fs_info->sectorsize))) {
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-02-17 21:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-17 18:09 [PATCH] btrfs: fix error message in check_extent_data_ref() Mark Harmstone
2026-02-17 21:03 ` Qu Wenruo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox