* [PATCH] fs: block: reduce the stack footprint by using the %pg printk specifier
@ 2021-07-30 20:32 Abd-Alrhman Masalkhi
0 siblings, 0 replies; only message in thread
From: Abd-Alrhman Masalkhi @ 2021-07-30 20:32 UTC (permalink / raw)
To: viro; +Cc: arnd, linux-fsdevel, linux-block, Abd-Alrhman Masalkhi
Reduced the stack footprint by using the %pg printk specifier.
Signed-off-by: Abd-Alrhman Masalkhi <abd.masalkhi@gmail.com>
---
fs/block_dev.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/fs/block_dev.c b/fs/block_dev.c
index 6658f40ae492..765b3a9b328c 100644
--- a/fs/block_dev.c
+++ b/fs/block_dev.c
@@ -64,10 +64,9 @@ static void bdev_write_inode(struct block_device *bdev)
spin_unlock(&inode->i_lock);
ret = write_inode_now(inode, true);
if (ret) {
- char name[BDEVNAME_SIZE];
pr_warn_ratelimited("VFS: Dirty inode writeback failed "
- "for block device %s (err=%d).\n",
- bdevname(bdev, name), ret);
+ "for block device %pg (err=%d).\n",
+ bdev, ret);
}
spin_lock(&inode->i_lock);
}
--
2.29.0.rc1.dirty
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-07-30 20:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-07-30 20:32 [PATCH] fs: block: reduce the stack footprint by using the %pg printk specifier Abd-Alrhman Masalkhi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).