]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfs: make the RT rsum_cache mandatory
authorChristoph Hellwig <hch@lst.de>
Fri, 30 Aug 2024 22:36:52 +0000 (15:36 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Sun, 1 Sep 2024 15:58:19 +0000 (08:58 -0700)
commit3cb30d5162292a30d34f7e4fa74c13388c4d74ad
tree370d337c754c372aab657dee9747d1a8b58c917a
parent6529eef810e2ded0e540162273ee31a41314ec4e
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