]> git.ipfire.org Git - people/ms/linux.git/commit - fs/xfs/libxfs/xfs_ialloc.c
xfs: inode allocation can use a single perag instance
authorDave Chinner <dchinner@redhat.com>
Wed, 2 Jun 2021 00:48:24 +0000 (10:48 +1000)
committerDave Chinner <david@fromorbit.com>
Wed, 2 Jun 2021 00:48:24 +0000 (10:48 +1000)
commit309161f6603ce1a53b76a42817cde2a9bcd17e82
tree1fd8e2e8baf523a4cf338d2d8a09d38943535a55
parentb652afd937033911944d7f681f2031b006961f1d
xfs: inode allocation can use a single perag instance

Now that we've internalised the two-phase inode allocation, we can
now easily make the AG selection and allocation atomic from the
perspective of a single perag context. This will ensure AGs going
offline/away cannot occur between the selection and allocation
steps.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
fs/xfs/libxfs/xfs_ialloc.c