linux-bcache.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH block/for-next v2 10/16] erofs: use new helper to get inode from block_device
@ 2023-11-27  6:22 Yu Kuai
  2023-11-27  6:22 ` [PATCH block/for-next v2 11/16] ext4: " Yu Kuai
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Yu Kuai @ 2023-11-27  6:22 UTC (permalink / raw)
  To: hch, ming.lei, axboe, roger.pau, colyli, kent.overstreet, joern,
	miquel.raynal, richard, vigneshr, sth, hoeppner, hca, gor,
	agordeev, jejb, martin.petersen, clm, josef, dsterba, viro,
	brauner, nico, xiang, chao, tytso, adilger.kernel, agruenba,
	jack, konishi.ryusuke, dchinner, linux, min15.li, yukuai3,
	dlemoal, willy, akpm, hare, p.raghav
  Cc: linux-block, linux-kernel, xen-devel, linux-bcache, linux-mtd,
	linux-s390, linux-scsi, linux-bcachefs, linux-btrfs,
	linux-fsdevel, linux-erofs, linux-ext4, gfs2, linux-nilfs,
	yukuai1, yi.zhang, yangerkun

From: Yu Kuai <yukuai3@huawei.com>

Which is more efficiency, and also prepare to remove the field
'bd_inode' from block_device.

Signed-off-by: Yu Kuai <yukuai3@huawei.com>
---
 fs/erofs/data.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/erofs/data.c b/fs/erofs/data.c
index 029c761670bf..85d490b3b53d 100644
--- a/fs/erofs/data.c
+++ b/fs/erofs/data.c
@@ -70,7 +70,7 @@ void erofs_init_metabuf(struct erofs_buf *buf, struct super_block *sb)
 	if (erofs_is_fscache_mode(sb))
 		buf->inode = EROFS_SB(sb)->s_fscache->inode;
 	else
-		buf->inode = sb->s_bdev->bd_inode;
+		buf->inode = bdev_inode(sb->s_bdev);
 }
 
 void *erofs_read_metabuf(struct erofs_buf *buf, struct super_block *sb,
-- 
2.39.2


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-11-27  6:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-27  6:22 [PATCH block/for-next v2 10/16] erofs: use new helper to get inode from block_device Yu Kuai
2023-11-27  6:22 ` [PATCH block/for-next v2 11/16] ext4: " Yu Kuai
2023-11-27  6:22 ` [PATCH block/for-next v2 12/16] gfs2: " Yu Kuai
2023-11-27  6:22 ` [PATCH block/for-next v2 13/16] jbd2: " Yu Kuai
2023-11-27  6:22 ` [PATCH block/for-next v2 14/16] nilfs2: " Yu Kuai
2023-11-27  6:22 ` [PATCH block/for-next v2 15/16] buffer: " Yu Kuai
2023-11-27  6:22 ` [PATCH block/for-next v2 16/16] block: " Yu Kuai

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).