md-bitmap: use %pD to print the file name in md_bitmap_file_kick
authorChristoph Hellwig <hch@lst.de>
Thu, 15 Jun 2023 06:48:32 +0000 (08:48 +0200)
committerSong Liu <song@kernel.org>
Thu, 27 Jul 2023 07:13:29 +0000 (00:13 -0700)
commit92348518f23f4fc81caa1a0f7f587566db67b52f
treedbab83db3ba8d7e46837345d717a1fcd2809734f
parent546ac0b2e2b15d0af7e6d10506558dded1d9d54a
md-bitmap: use %pD to print the file name in md_bitmap_file_kick

Don't bother allocating an extra buffer in the I/O failure handler and
instead use the printk built-in format to print the last 4 path name
components.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Song Liu <song@kernel.org>
Link: https://lore.kernel.org/r/20230615064840.629492-4-hch@lst.de
drivers/md/md-bitmap.c