]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: factor free block index lookup from xfs_dir2_node_addname_int()
authorDave Chinner <dchinner@redhat.com>
Fri, 13 Dec 2019 00:54:33 +0000 (19:54 -0500)
committerEric Sandeen <sandeen@redhat.com>
Fri, 13 Dec 2019 00:54:33 +0000 (19:54 -0500)
commit64b80d8656ec0a64c5c6b3a0b88a9ad0276e0844
tree4c916f8d02687d1c464a7aee6815515f62092c67
parent34af510f542f1034ea1b08d9a2320bb2201daee5
xfs: factor free block index lookup from xfs_dir2_node_addname_int()

Source kernel commit: 0e822255f95db400e56e19773e04755d79b50bda

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>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_dir2_node.c