diff options
author | Dave Chinner <dchinner@redhat.com> | 2019-08-29 09:04:07 -0700 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2019-08-30 22:43:57 -0700 |
commit | 0e822255f95db400e56e19773e04755d79b50bda (patch) | |
tree | 4bf283a5959b9ce864a25d9725ca8fc7593a13e5 /usr | |
parent | a07258a695281109422011182db069a0e6f8855e (diff) | |
download | linux-0e822255f95db400e56e19773e04755d79b50bda.tar.gz |
xfs: factor free block index lookup from xfs_dir2_node_addname_int()
Simplify the logic in xfs_dir2_node_addname_int() by factoring out
the free block index lookup code that finds a block with enough free
space for the entry to be added. The code that is moved gets a major
cleanup at the same time, but there is no algorithm change here.
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions