diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2017-09-18 09:42:09 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-10-27 10:38:09 +0200 |
commit | 98cbca24894c592499bf135d3f3f5bd9f8f6946d (patch) | |
tree | 2ce031ecdb52eda64e0afa6448e40662b96295c4 /fs/xfs/xfs_ioctl32.h | |
parent | 0eebfedec1449f31c2321723acdd3c36dcac7f0a (diff) |
xfs: perag initialization should only touch m_ag_max_usable for AG 0
commit 9789dd9e1d939232e8ff4c50ef8e75aa6781b3fb upstream.
We call __xfs_ag_resv_init to make a per-AG reservation for each AG.
This makes the reservation per-AG, not per-filesystem. Therefore, it
is incorrect to adjust m_ag_max_usable for each AG. Adjust it only
when we're reserving AG 0's blocks so that we only do it once per fs.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/xfs/xfs_ioctl32.h')
0 files changed, 0 insertions, 0 deletions