summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_qm.c
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2022-07-14 11:16:18 -0700
committerDarrick J. Wong <djwong@kernel.org>2022-11-09 19:08:14 -0800
commitda2fe608bcde5fd11cbda0086df9dd348ee39237 (patch)
tree745e7d40ddd30310a553b0cbbbb0949ad64711a6 /fs/xfs/xfs_qm.c
parentc197ace5766e56c17c2611bf910c4cf4798c8558 (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