diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2017-11-06 11:37:46 -0800 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2017-11-09 09:10:45 -0800 |
commit | 35ce85233412354d6737b8407738174eb251fd32 (patch) | |
tree | 80a0903afd25b95c5196a5bfc4006af3c43da158 /fs/xfs/xfs_quota.h | |
parent | 181fdfe662716450ce64be4134157d7152e6402e (diff) | |
download | lwn-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