OSDN Git Service

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)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 13 Dec 2018 20:03:45 +0000 (12:03 -0800)
commit64bafd2f1e484e27071e7584642005d56516cb77
treed4b349d3899b5ed2e7fbf7480a70db9b21079218
parent355e3532132b487ebf6a4900fad8f3525fa3e137
xfs: require both realtime inodes to mount

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>
fs/xfs/xfs_rtalloc.c