xfs: use perag through unlink processing
authorDave Chinner <dchinner@redhat.com>
Wed, 2 Jun 2021 00:48:51 +0000 (10:48 +1000)
committerDave Chinner <david@fromorbit.com>
Wed, 2 Jun 2021 00:48:51 +0000 (10:48 +1000)
commitf40aadb2bb64fe0a3d9b59957e70796d629cdee2
treec28ab093f3e077509dc6d686951e637238cd6f92
parent8237fbf53d6fd2a3a248fc2a8608e047ef22316c
xfs: use perag through unlink processing

Unlinked lists are held in the perag, and freeing of inodes needs to
be passed a perag, too, so look up the perag early in the unlink
processing and use it throughout.

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