[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210602152903.910190-8-warwish@yandex-team.ru>
Date: Wed, 2 Jun 2021 18:29:00 +0300
From: Anton Suvorov <warwish@...dex-team.ru>
To: linux-kernel@...r.kernel.org
Cc: warwish@...dex-team.ru, linux-fsdevel@...r.kernel.org,
dmtrmonakhov@...dex-team.ru, linux-block@...r.kernel.org,
viro@...iv.linux.org.uk
Subject: [PATCH 07/10] vfs: reduce stack footprint in __blkdev_put()
Stack usage reduced (measured with allyesconfig):
./fs/block_dev.c __blkdev_put 224 80 -144
Signed-off-by: Anton Suvorov <warwish@...dex-team.ru>
---
fs/block_dev.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/fs/block_dev.c b/fs/block_dev.c
index 6cc4d4cfe0c2..cef3a4aa46dc 100644
--- a/fs/block_dev.c
+++ b/fs/block_dev.c
@@ -64,10 +64,8 @@ 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);
+ pr_warn_ratelimited("VFS: Dirty inode writeback failed for block device %pg (err=%d).\n",
+ bdev, ret);
}
spin_lock(&inode->i_lock);
}
--
2.25.1
Powered by blists - more mailing lists