Linux XFS filesystem development
 help / color / mirror / Atom feed
* [PATCH 0/2] xfs: add missing cursor status check after btree ops
@ 2026-10-13 21:07 Eric Sandeen
  2026-10-13 21:07 ` [PATCH 1/2] xfs: add missing cursor status check after xfs_get_rec Eric Sandeen
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Eric Sandeen @ 2026-10-13 21:07 UTC (permalink / raw)
  To: linux-xfs; +Cc: cem, djwong, hch

I've been looking at ways to reduce/eliminate the frequency of the:

	if (XFS_IS_CORRUPT(mp, i != 1)) {
		xfs_btree_mark_sick(cnt_cur);
		return -EFSCORRUPTED;
	}

idiom scattered all over the tree, and in doing so I realized we
have a few spots that probably /should/ have this checked but
don't. Sending these first to ease backporting if needed, though
what they should actually get for Fixes: isn't very clear to me as
this error handling has evolved over time I think.

I did run these through xfstests but I can't guarantee the change
was tested in any targeted way, so it's mostly inspection.

After these I'll send a series that floats the idea of removing this
idiom completely from btree insert/delete type fns because "stat" is
never different from "error" in practice, but that's a story for
another day and I need to do a bit more testing first.

Thanks,
-Eric


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

end of thread, other threads:[~2026-10-14 13:21 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-13 21:07 [PATCH 0/2] xfs: add missing cursor status check after btree ops Eric Sandeen
2026-10-13 21:07 ` [PATCH 1/2] xfs: add missing cursor status check after xfs_get_rec Eric Sandeen
2026-10-13 21:58   ` Darrick J. Wong
2026-10-14  0:16   ` [PATCH 1/2 V2] xfs: add missing cursor status check after xfs_inobt_get_rec Eric Sandeen
2026-10-14 13:20     ` Christoph Hellwig
2026-10-13 21:07 ` [PATCH 2/2] xfs: add missing cursor stat checks after xfs_btree_delete Eric Sandeen
2026-10-13 21:59   ` Darrick J. Wong
2026-10-14 13:21   ` Christoph Hellwig
2026-10-14  8:28 ` [PATCH 0/2] xfs: add missing cursor status check after btree ops Carlos Maiolino

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