]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: unconditionally read all AGFs on mounts with perag reservation
authorBrian Foster <bfoster@redhat.com>
Wed, 30 Jun 2021 22:38:58 +0000 (18:38 -0400)
committerEric Sandeen <sandeen@sandeen.net>
Wed, 30 Jun 2021 22:38:58 +0000 (18:38 -0400)
commit3a3e33840c63347afa8aaa5bd8dd90f8ca2d5bec
treee34aa44c779d0a24a8834a8208edc8391aaa1df4
parent5155fce1b7d825e708afc05736512a611eb35cd4
xfs: unconditionally read all AGFs on mounts with perag reservation

Source kernel commit: 2675ad3890db93e58f2264d07c2d1f615ec5adf7

perag reservation is enabled at mount time on a per AG basis. The
upcoming change to set aside allocbt blocks from block reservation
requires a populated allocbt counter as soon as possible after mount
to be fully effective against large perag reservations. Therefore as
a preparation step, initialize the pagf on all mounts where at least
one reservation is active. Note that this already occurs to some
degree on most default format filesystems as reservation requirement
calculations already depend on the AGF or AGI, depending on the
reservation type.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Chandan Babu R <chandanrlinux@gmail.com>
Reviewed-by: Allison Henderson <allison.henderson@oracle.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_ag_resv.c