Skip to contentSkip to conversation

fs: block: reduce the stack footprint by using the %pg printk specifier

PATCH New Abd-Alrhman Masalkhi 1 participant 1 message Jul 30, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fs: block: reduce the stack footprint by using the %pg printk specifier

Reduced the stack footprint by using the %pg printk specifier.

---
 fs/block_dev.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
fs/block_dev.c +2 -3
index 6658f40ae492..765b3a9b328c 100644
@@ -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);
 	}
Signature · 1 line
2.29.0.rc1.dirty