linux/fs/xfs/scrub
Darrick J. Wong 35ce852334 xfs: refactor the directory data block bestfree checks
In a directory data block, the zeroth bestfree item must point to the
longest free space.  Therefore, when we check the bestfree block's
records against the data blocks, we only need to compare with bf[0] and
don't need the loop.

The weird loop was most probably the result of an earlier refactoring
gone bad.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
2017-11-09 09:10:45 -08:00
..
agheader.c xfs: scrub the AGI 2017-10-26 15:38:24 -07:00
alloc.c xfs: scrub free space btrees 2017-10-26 15:38:25 -07:00
attr.c xfs: trivial sparse fixes for the new scrub code 2017-11-06 11:53:58 -08:00
bmap.c xfs: trivial sparse fixes for the new scrub code 2017-11-06 11:53:58 -08:00
btree.c xfs: trivial sparse fixes for the new scrub code 2017-11-06 11:53:58 -08:00
btree.h xfs: create helpers to scrub a metadata btree 2017-10-26 15:38:24 -07:00
common.c xfs: scrub directory metadata 2017-10-26 15:38:25 -07:00
common.h xfs: scrub quota information 2017-10-26 15:38:26 -07:00
dabtree.c xfs: scrub: avoid uninitialized return code 2017-11-03 09:45:56 -07:00
dabtree.h xfs: scrub extended attribute leaf space 2017-11-01 15:03:16 -07:00
dir.c xfs: refactor the directory data block bestfree checks 2017-11-09 09:10:45 -08:00
ialloc.c xfs: scrub inode btrees 2017-10-26 15:38:25 -07:00
inode.c xfs: scrub inodes 2017-10-26 15:38:25 -07:00
parent.c xfs: scrub directory parent pointers 2017-10-26 15:38:26 -07:00
quota.c xfs: scrub quota information 2017-10-26 15:38:26 -07: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: scrub realtime bitmap/summary 2017-10-26 15:38:26 -07:00
scrub.c xfs: trivial sparse fixes for the new scrub code 2017-11-06 11:53:58 -08:00
scrub.h xfs: scrub quota information 2017-10-26 15:38:26 -07:00
symlink.c xfs: scrub symbolic links 2017-10-26 15:38:26 -07:00
trace.c xfs: create helpers to scrub a metadata btree 2017-10-26 15:38:24 -07:00
trace.h xfs: scrub btree keys and records 2017-10-26 15:38:24 -07:00
xfs_scrub.h