[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230526073336.344543-4-mcgrof@kernel.org>
Date: Fri, 26 May 2023 00:33:34 -0700
From: Luis Chamberlain <mcgrof@...nel.org>
To: axboe@...nel.dk, agk@...hat.com, snitzer@...nel.org,
philipp.reisner@...bit.com, lars.ellenberg@...bit.com,
christoph.boehmwalder@...bit.com, hch@...radead.org,
djwong@...nel.org, minchan@...nel.org, senozhatsky@...omium.org
Cc: patches@...ts.linux.dev, linux-block@...r.kernel.org,
linux-mm@...ck.org, linux-xfs@...r.kernel.org,
linux-fsdevel@...r.kernel.org, dm-devel@...hat.com,
drbd-dev@...ts.linbit.com, linux-kernel@...r.kernel.org,
willy@...radead.org, hare@...e.de, p.raghav@...sung.com,
da.gomez@...sung.com, rohan.puri@...sung.com,
rpuri.linux@...il.com, kbusch@...nel.org, mcgrof@...nel.org
Subject: [PATCH v2 3/5] iomap: simplify iomap_init() with PAGE_SECTORS
Replace common constants with generic versions. This produces no
functional changes.
Signed-off-by: Luis Chamberlain <mcgrof@...nel.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
Powered by blists - more mailing lists