xfs: always succeed at setting the reserve pool size
authorDarrick J. Wong <djwong@kernel.org>
Thu, 24 Mar 2022 19:43:32 +0000 (12:43 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 28 Mar 2022 15:38:56 +0000 (08:38 -0700)
commit0baa2657dc4d79202148be79a3dc36c35f425060
tree5e03b79824c9c9729dd81c535657dd595707293f
parent15f04fdc75aaaa1cccb0b8b3af1be290e118a7bc
xfs: always succeed at setting the reserve pool size

Nowadays, xfs_mod_fdblocks will always choose to fill the reserve pool
with freed blocks before adding to fdblocks.  Therefore, we can change
the behavior of xfs_reserve_blocks slightly -- setting the target size
of the pool should always succeed, since a deficiency will eventually
be made up as blocks get freed.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/xfs_fsops.c