[PATCH v2 3/5] iomap: simplify iomap_init() with PAGE_SECTORS

Luis Chamberlain posted 5 patches 1 year, 1 month ago
There is a newer version of this series
[PATCH v2 3/5] iomap: simplify iomap_init() with PAGE_SECTORS
Posted by Luis Chamberlain 1 year, 1 month ago
Replace common constants with generic versions. This produces no
functional changes.

Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
---
 fs/iomap/buffered-io.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/iomap/buffered-io.c b/fs/iomap/buffered-io.c
index 915b448b8554..5641e696fb3f 100644
--- a/fs/iomap/buffered-io.c
+++ b/fs/iomap/buffered-io.c
@@ -1831,7 +1831,7 @@ EXPORT_SYMBOL_GPL(iomap_writepages);
 
 static int __init iomap_init(void)
 {
-	return bioset_init(&iomap_ioend_bioset, 4 * (PAGE_SIZE / SECTOR_SIZE),
+	return bioset_init(&iomap_ioend_bioset, 4 * PAGE_SECTORS,
 			   offsetof(struct iomap_ioend, io_inline_bio),
 			   BIOSET_NEED_BVECS);
 }
-- 
2.39.2
Re: [PATCH v2 3/5] iomap: simplify iomap_init() with PAGE_SECTORS
Posted by Johannes Thumshirn 1 year, 1 month ago
Looks good,
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Re: [PATCH v2 3/5] iomap: simplify iomap_init() with PAGE_SECTORS
Posted by Christoph Hellwig 1 year, 1 month ago
Looks good:

Reviewed-by: Christoph Hellwig <hch@lst.de>