xfs: Use WARN_ON_ONCE for bailout mount-operation
authorAustin Kim <austindh.kim@gmail.com>
Fri, 6 Sep 2019 01:08:50 +0000 (18:08 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Fri, 6 Sep 2019 04:36:12 +0000 (21:36 -0700)
commiteb2e99943c5bd528af67516fbd9db0ad15e61611
tree177a10a6580fb2e5ad38d11d049f827e890d1ba8
parentbc56ad8c74b8588685c2875de0df8ab6974828ef
xfs: Use WARN_ON_ONCE for bailout mount-operation

If the CONFIG_BUG is enabled, BUG is executed and then system is crashed.
However, the bailout for mount is no longer proceeding.

Using WARN_ON_ONCE rather than BUG can prevent this situation.

Signed-off-by: Austin Kim <austindh.kim@gmail.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_mount.c