summaryrefslogtreecommitdiff
path: root/block/disk-events.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2023-08-11 13:08:23 +0300
committerChristian Brauner <brauner@kernel.org>2023-08-21 15:35:31 +0300
commit127a5093c79d9cdea9e6edc016ab346e6dd16c23 (patch)
tree01f9b16e4399f26d9dd41d140f0b339bd677bd8c /block/disk-events.c
parent2527fd38772fea30c1d1cbf94839a0bbf4122133 (diff)
downloadlinux-127a5093c79d9cdea9e6edc016ab346e6dd16c23.tar.xz
block: drop the "busy inodes on changed media" log message
This message isn't exactly helpful, and file systems already print way more useful messages when shut down while active. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Josef Bacik <josef@toxicpanda.com> Message-Id: <20230811100828.1897174-13-hch@lst.de> Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'block/disk-events.c')
-rw-r--r--block/disk-events.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/block/disk-events.c b/block/disk-events.c
index 6189b819b235..6b858d350477 100644
--- a/block/disk-events.c
+++ b/block/disk-events.c
@@ -281,9 +281,7 @@ bool disk_check_media_change(struct gendisk *disk)
if (!(events & DISK_EVENT_MEDIA_CHANGE))
return false;
- if (__invalidate_device(disk->part0, true))
- pr_warn("VFS: busy inodes on changed media %s\n",
- disk->disk_name);
+ __invalidate_device(disk->part0, true);
set_bit(GD_NEED_PART_SCAN, &disk->state);
return true;
}
@@ -302,9 +300,7 @@ void disk_force_media_change(struct gendisk *disk)
{
disk_event_uevent(disk, DISK_EVENT_MEDIA_CHANGE);
inc_diskseq(disk);
- if (__invalidate_device(disk->part0, true))
- pr_warn("VFS: busy inodes on changed media %s\n",
- disk->disk_name);
+ __invalidate_device(disk->part0, true);
set_bit(GD_NEED_PART_SCAN, &disk->state);
}
EXPORT_SYMBOL_GPL(disk_force_media_change);