xfs: remove infinite loop when reserving free block pool
authorDarrick J. Wong <djwong@kernel.org>
Fri, 11 Mar 2022 18:56:01 +0000 (10:56 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 28 Mar 2022 15:38:50 +0000 (08:38 -0700)
commit15f04fdc75aaaa1cccb0b8b3af1be290e118a7bc
tree2475bfcd29f3af97d83f17dbac636e5e24449fa6
parentc8c568259772751a14e969b7230990508de73d9d
xfs: remove infinite loop when reserving free block pool

Infinite loops in kernel code are scary.  Calls to xfs_reserve_blocks
should be rare (people should just use the defaults!) so we really don't
need to try so hard.  Simplify the logic here by removing the infinite
loop.

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