public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] btrfs: small improvement to leaf dump
@ 2023-04-27 12:16 Qu Wenruo
  2023-04-27 12:16 ` [PATCH 1/2] btrfs: print-tree: accept const extent buffer pointer Qu Wenruo
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Qu Wenruo @ 2023-04-27 12:16 UTC (permalink / raw)
  To: linux-btrfs

The first patch is just constify the tree dump infrastructure, exposed
during the development.

The second patch is the main dish, inspired by a report that turns out
to be bitflip in extent tree.
However the leaf dump in dmesg is pretty large (100+ slots), needs to
manually search the leaf using the bytenr from the error messages.

Thus if we can output the slot number, it would be much easier to locate
the problem, just like what we did in tree-checker.

Qu Wenruo (2):
  btrfs: print-tree: accept const extent buffer pointer
  btrfs: improve leaf dump and error handling

 fs/btrfs/ctree.c       |   8 +--
 fs/btrfs/ctree.h       |   2 +-
 fs/btrfs/extent-tree.c | 125 +++++++++++++++++++----------------------
 fs/btrfs/print-tree.c  |  16 +++---
 fs/btrfs/print-tree.h  |   4 +-
 5 files changed, 73 insertions(+), 82 deletions(-)

-- 
2.39.2


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-05-02 15:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-27 12:16 [PATCH 0/2] btrfs: small improvement to leaf dump Qu Wenruo
2023-04-27 12:16 ` [PATCH 1/2] btrfs: print-tree: accept const extent buffer pointer Qu Wenruo
2023-04-27 12:16 ` [PATCH 2/2] btrfs: improve leaf dump and error handling Qu Wenruo
2023-05-02 15:34 ` [PATCH 0/2] btrfs: small improvement to leaf dump David Sterba

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox