]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
libxfs: port xfs_set_inode_alloc from the kernel
authorDarrick J. Wong <djwong@kernel.org>
Fri, 1 Oct 2021 18:00:34 +0000 (14:00 -0400)
committerEric Sandeen <sandeen@sandeen.net>
Fri, 1 Oct 2021 18:00:34 +0000 (14:00 -0400)
commitb9ee1227075b4b578818465ed5244e93ec8d3fe8
tree5a695ec9bd3104adfd951db6b35c2e4c7cea3491
parent6bc3531cf882b4d8b5ff5fa24cda79ec1e357c61
libxfs: port xfs_set_inode_alloc from the kernel

To prepare to perag initialization code move to libxfs, port the
xfs_set_inode_alloc function from the kernel and make
libxfs_initialize_perag use it.  The code isn't 1:1 identical, but
AFAICT it behaves the same way.  In a future kernel release we'll
move the function into xfs_ag.c and update xfsprogs.

(sandeen: Note that this is in effect simply syncing up several
kernel commits in this code which was not shared via libxfs.)

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/init.c