summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_quota.h
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/xfs_quota.h
parent181fdfe662716450ce64be4134157d7152e6402e (diff)
downloadlwn-35ce85233412354d6737b8407738174eb251fd32.tar.gz
lwn-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/xfs_quota.h')
0 files changed, 0 insertions, 0 deletions