]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: don't print warnings when xfs_log_force fails
authorChristoph Hellwig <hch@lst.de>
Mon, 9 Jan 2017 21:41:33 +0000 (13:41 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 9 Jan 2017 21:45:01 +0000 (13:45 -0800)
commit5c7ccb9a56fdca484e66287a92751064e309c211
tree4d64448c06bdf88721c6a01fd626386d73ea785e
parentc48d8c0e9f20c6aadd16ee5abc81cb3c8fc1d5f8
xfs: don't print warnings when xfs_log_force fails

There are only two reasons for xfs_log_force / xfs_log_force_lsn to fail:
one is an I/O error, for which xlog_bdstrat already logs a warning, and
the second is an already shutdown log due to a previous I/O errors.  In
the latter case we'll already have a previous indication for the actual
error, but the large stream of misleading warnings from xfs_log_force
will probably scroll it out of the message buffer.

Simply removing the warnings thus makes the XFS log reporting significantly
better.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_log.c