alistair23-linux/fs/xfs/scrub
Darrick J. Wong 858333dcf0 xfs: check btree block ownership with bnobt/rmapbt when scrubbing btree
When scanning a metadata btree block, cross-reference the block location
with the free space btree and the reverse mapping btree to ensure that
the rmapbt knows about the block and the bnobt does not.  Add a
mechanism to defer checks when we happen to be scanning the bnobt/rmapbt
itself because it's less efficient to repeatedly clone and destroy the
cursor.

This patch provides the framework to make btree block owner checks
happen; the actual meat will be added in subsequent patches.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
2018-01-17 21:00:45 -08:00
..
agheader.c xfs: catch a few more error codes when scrubbing secondary sb 2018-01-08 10:49:02 -08:00
alloc.c xfs: scrub free space btrees 2017-10-26 15:38:25 -07:00
attr.c xfs: pass inode number to xfs_scrub_ino_set_{preen,warning} 2017-11-09 09:10:45 -08:00
bmap.c xfs: xfs_scrub_bmap should use for_each_xfs_iext 2018-01-08 10:49:03 -08:00
btree.c xfs: check btree block ownership with bnobt/rmapbt when scrubbing btree 2018-01-17 21:00:45 -08:00
btree.h xfs: set up scrub cross-referencing helpers 2018-01-17 21:00:44 -08:00
common.c xfs: set up scrub cross-referencing helpers 2018-01-17 21:00:44 -08:00
common.h xfs: set up scrub cross-referencing helpers 2018-01-17 21:00:44 -08:00
dabtree.c xfs: only check da node header padding on v5 filesystems 2017-11-09 09:10:45 -08:00
dabtree.h xfs: scrub extended attribute leaf space 2017-11-01 15:03:16 -07:00
dir.c xfs: fix a few erroneous process_error calls in the scrubbers 2018-01-17 21:00:45 -08:00
ialloc.c xfs: scrub inode btrees 2017-10-26 15:38:25 -07:00
inode.c xfs: fix a few erroneous process_error calls in the scrubbers 2018-01-17 21:00:45 -08:00
parent.c xfs: fix a few erroneous process_error calls in the scrubbers 2018-01-17 21:00:45 -08:00
quota.c xfs: move all scrub input checking to xfs_scrub_validate 2018-01-08 10:41:34 -08:00
refcount.c xfs: scrub refcount btrees 2017-10-26 15:38:25 -07:00
rmap.c xfs: scrub rmap btrees 2017-10-26 15:38:25 -07:00
rtbitmap.c xfs: move all scrub input checking to xfs_scrub_validate 2018-01-08 10:41:34 -08:00
scrub.c xfs: set up scrub cross-referencing helpers 2018-01-17 21:00:44 -08:00
scrub.h xfs: move all scrub input checking to xfs_scrub_validate 2018-01-08 10:41:34 -08:00
symlink.c xfs: scrub symbolic links 2017-10-26 15:38:26 -07:00
trace.c fs: xfs: remove duplicate includes 2017-12-08 17:51:05 -08:00
trace.h xfs: set up scrub cross-referencing helpers 2018-01-17 21:00:44 -08:00
xfs_scrub.h xfs: create an ioctl to scrub AG metadata 2017-10-26 15:38:23 -07:00