original_kernel/fs/xfs/scrub
Darrick J. Wong add46b3b02 xfs: set buffer ops when repair probes for btree type
In xrep_findroot_block, we work out the btree type and correctness of a
given block by calling different btree verifiers on root block
candidates.  However, we leave the NULL b_ops while ->verify_read
validates the block, which means that if the verifier calls
xfs_buf_verifier_error it'll crash on the null b_ops.  Fix it to set
b_ops before calling the verifier and unsetting it if the verifier
fails.

Furthermore, improve the documentation around xfs_buf_ensure_ops, which
is the function that is responsible for cleaning up the b_ops state of
buffers that go through xrep_findroot_block but don't match anything.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
2019-02-03 14:03:59 -08:00
..
agheader.c
agheader_repair.c
alloc.c
attr.c
bitmap.c
bitmap.h
bmap.c
btree.c
btree.h
common.c
common.h
dabtree.c
dabtree.h
dir.c
ialloc.c xfs: count inode blocks correctly in inobt scrub 2018-12-12 08:47:17 -08:00
inode.c
parent.c
quota.c
refcount.c
repair.c xfs: set buffer ops when repair probes for btree type 2019-02-03 14:03:59 -08:00
repair.h
rmap.c
rtbitmap.c
scrub.c
scrub.h
symlink.c
trace.c
trace.h xfs: stringify scrub types in ftrace output 2018-12-19 14:02:01 -08:00
xfs_scrub.h