aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/scrub/common.c
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2017-11-06 11:37:46 -0800
committerDarrick J. Wong <darrick.wong@oracle.com>2017-11-09 09:10:45 -0800
commit35ce85233412354d6737b8407738174eb251fd32 (patch)
tree80a0903afd25b95c5196a5bfc4006af3c43da158 /fs/xfs/scrub/common.c
parentxfs: mark xlog_verify_dest_ptr STATIC (diff)
downloadlinux-dev-35ce85233412354d6737b8407738174eb251fd32.tar.xz
linux-dev-35ce85233412354d6737b8407738174eb251fd32.zip
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>
Diffstat (limited to 'fs/xfs/scrub/common.c')
0 files changed, 0 insertions, 0 deletions