mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-07 03:18:31 +00:00
xfs: don't warn about page discards on shutdown
If we are doing a forced shutdown, we can get lots of noise about delalloc pages being discarded. This is happens by design during a forced shutdown, so don't spam the logs with these messages. Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Alex Elder <aelder@sgi.com>
This commit is contained in:
parent
8a262e573d
commit
e8c3753ce4
1 changed files with 10 additions and 3 deletions
|
@ -932,6 +932,9 @@ xfs_aops_discard_page(
|
||||||
if (!xfs_is_delayed_page(page, IOMAP_DELAY))
|
if (!xfs_is_delayed_page(page, IOMAP_DELAY))
|
||||||
goto out_invalidate;
|
goto out_invalidate;
|
||||||
|
|
||||||
|
if (XFS_FORCED_SHUTDOWN(ip->i_mount))
|
||||||
|
goto out_invalidate;
|
||||||
|
|
||||||
xfs_fs_cmn_err(CE_ALERT, ip->i_mount,
|
xfs_fs_cmn_err(CE_ALERT, ip->i_mount,
|
||||||
"page discard on page %p, inode 0x%llx, offset %llu.",
|
"page discard on page %p, inode 0x%llx, offset %llu.",
|
||||||
page, ip->i_ino, offset);
|
page, ip->i_ino, offset);
|
||||||
|
@ -964,8 +967,10 @@ xfs_aops_discard_page(
|
||||||
|
|
||||||
if (error) {
|
if (error) {
|
||||||
/* something screwed, just bail */
|
/* something screwed, just bail */
|
||||||
|
if (!XFS_FORCED_SHUTDOWN(ip->i_mount)) {
|
||||||
xfs_fs_cmn_err(CE_ALERT, ip->i_mount,
|
xfs_fs_cmn_err(CE_ALERT, ip->i_mount,
|
||||||
"page discard failed delalloc mapping lookup.");
|
"page discard failed delalloc mapping lookup.");
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (!nimaps) {
|
if (!nimaps) {
|
||||||
|
@ -991,8 +996,10 @@ xfs_aops_discard_page(
|
||||||
ASSERT(!flist.xbf_count && !flist.xbf_first);
|
ASSERT(!flist.xbf_count && !flist.xbf_first);
|
||||||
if (error) {
|
if (error) {
|
||||||
/* something screwed, just bail */
|
/* something screwed, just bail */
|
||||||
|
if (!XFS_FORCED_SHUTDOWN(ip->i_mount)) {
|
||||||
xfs_fs_cmn_err(CE_ALERT, ip->i_mount,
|
xfs_fs_cmn_err(CE_ALERT, ip->i_mount,
|
||||||
"page discard unable to remove delalloc mapping.");
|
"page discard unable to remove delalloc mapping.");
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
next_buffer:
|
next_buffer:
|
||||||
|
|
Loading…
Reference in a new issue