]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: unconditionally read all AGFs on mounts with perag reservation
authorBrian Foster <bfoster@redhat.com>
Wed, 28 Apr 2021 22:05:41 +0000 (15:05 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 29 Apr 2021 14:45:44 +0000 (07:45 -0700)
commit694b4820e81e2f5ef21de24885bdbcc0715b0509
tree495fc5c362ab983e8954b9a3a183dfbc48cbeb0c
parentfe0f183d063de62401a23e5a18569967920c24cd
xfs: unconditionally read all AGFs on mounts with perag reservation

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>
fs/xfs/libxfs/xfs_ag_resv.c