diff options
author | Darrick J. Wong <djwong@kernel.org> | 2021-02-01 11:42:52 -0800 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2021-03-25 17:08:53 -0700 |
commit | eada055b4803d15380e62b0b1296f4a7599c8bde (patch) | |
tree | 4cacd358b29e2c4d062f1a6d5ff76dbf73d30757 /fs/xfs/xfs_qm.c | |
parent | a251bf581d7ae7b24a1e5ffc5bca49cb71e71ff6 (diff) |
xfs: fix rt growfs quota accounting
When growing the realtime bitmap or summary inodes, use
xfs_trans_alloc_inode to reserve quota for the blocks that could be
allocated to the file. Although we never enforce limits against the
root dquot, making a reservation means that the bmap code will update
the quota block count, which is necessary for correct accounting.
Found by running xfs/521.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/xfs/xfs_qm.c')
0 files changed, 0 insertions, 0 deletions