xfs: require both realtime inodes to mount
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 12 Dec 2018 23:18:52 +0000 (15:18 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2019 14:37:18 +0000 (15:37 +0100)
commit23df2afe9da6642bfecfb8f2b817aef8bcffc8ef
treeb25bae47cbe4cdd112ba604954b75d2048fdeafb
parent5d6babdd9c5eaa61aaf6bcd0763af3fe8f0aa4b9
xfs: require both realtime inodes to mount

[ Upstream commit 64bafd2f1e484e27071e7584642005d56516cb77 ]

Since mkfs always formats the filesystem with the realtime bitmap and
summary inodes immediately after the root directory, we should expect
that both of them are present and loadable, even if there isn't a
realtime volume attached.  There's no reason to skip this if rbmino ==
NULLFSINO; in fact, this causes an immediate crash if the there /is/ a
realtime volume and someone writes to it.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Bill O'Donnell <billodo@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/xfs/xfs_rtalloc.c