xfs: add missing cursor status check after btree ops
Status from this message: Applied to for-next, thanks!
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | xfs: add missing cursor status check after xfs_get_recfs/ | +5 | 3 replies | |
| 2/2 | xfs: add missing cursor stat checks after xfs_btree_deletefs/ | +22 | 2 replies |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Darrick J. Wong | Christoph Hellwig |
|---|---|---|
| 1/2 | R-b R-b | R-b |
| 2/2 | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/2] xfs: add missing cursor status check after btree ops
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