]> www.infradead.org Git - users/hch/xfs.git/commit
xfs: make the RT rsum_cache mandatory
authorChristoph Hellwig <hch@lst.de>
Wed, 7 Aug 2024 22:54:30 +0000 (15:54 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Fri, 16 Aug 2024 21:54:05 +0000 (14:54 -0700)
commitd7859690fed196c2d8ed2a9fda50af70a49458d1
tree0dd41215d25ec844f1c27b08f411641997c47573
parentc03cd2fccb1ea567dcd0bbad7a8f005e7801d7b6
xfs: make the RT rsum_cache mandatory

Currently the RT mount code simply ignores an allocation failure for the
rsum_cache.  The code mostly works fine with it, but not having it leads
to nasty corner cases in the growfs code that we don't really handle
well.  Switch to failing the mount if we can't allocate the memory, the
file system would not exactly be useful in such a constrained environment
to start with.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
fs/xfs/xfs_rtalloc.c