Message ID | 20230915224343.2740317-3-mcgrof@kernel.org (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 97D5CCD37AD for <linux-mm@archiver.kernel.org>; Fri, 15 Sep 2023 22:43:58 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 8852A8D0037; Fri, 15 Sep 2023 18:43:55 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 837F68D0005; Fri, 15 Sep 2023 18:43:55 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5ED8B8D0005; Fri, 15 Sep 2023 18:43:55 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 486438D003B for <linux-mm@kvack.org>; Fri, 15 Sep 2023 18:43:55 -0400 (EDT) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 1ECCD140342 for <linux-mm@kvack.org>; Fri, 15 Sep 2023 22:43:55 +0000 (UTC) X-FDA: 81240310830.03.A566DFC Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) by imf26.hostedemail.com (Postfix) with ESMTP id 84D99140014 for <linux-mm@kvack.org>; Fri, 15 Sep 2023 22:43:53 +0000 (UTC) Authentication-Results: imf26.hostedemail.com; dkim=pass header.d=infradead.org header.s=bombadil.20210309 header.b=1rmGZrmQ; dmarc=fail reason="No valid SPF, DKIM not aligned (relaxed)" header.from=kernel.org (policy=none); spf=none (imf26.hostedemail.com: domain of mcgrof@infradead.org has no SPF policy when checking 198.137.202.133) smtp.mailfrom=mcgrof@infradead.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1694817833; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=Cw7RdOPRUkFp9dSTX3luqJaGnpI4xwoQeOJGqBWR3yI=; b=lu+lFodjOPzZ+SzbLk/KV9+vmIcMDA4cUvB0m4W4+YHgM2xe+b1l3jHouiwajpuVZO+tl+ EkIloR5fyk8z96pl72IJcG7DmeRr1/+7Aqv4IpsxR1Ck/jHvss9y2jaRtIHQ10+wqTGto1 YnHA1BkDrpKQcsXtNz7uQ7AnQKS8cLU= ARC-Authentication-Results: i=1; imf26.hostedemail.com; dkim=pass header.d=infradead.org header.s=bombadil.20210309 header.b=1rmGZrmQ; dmarc=fail reason="No valid SPF, DKIM not aligned (relaxed)" header.from=kernel.org (policy=none); spf=none (imf26.hostedemail.com: domain of mcgrof@infradead.org has no SPF policy when checking 198.137.202.133) smtp.mailfrom=mcgrof@infradead.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1694817833; a=rsa-sha256; cv=none; b=OyTTGAp/BI4QcoT/AxqUKJ3T7d8qzA+vAQFZZOr4GNT5BOpf/n4mFT/XepTuNq1I3iKmMW LE6WBzE5DDH2HQCpjgFPofm1ODTfGp6Orzw6Ab6/JAITTBALe4i020Lx7i9fIwhHMMG540 CkZfd01oxoj8doZVZOk/XFI09AyoCZk= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description; bh=Cw7RdOPRUkFp9dSTX3luqJaGnpI4xwoQeOJGqBWR3yI=; b=1rmGZrmQs0g1DKXfgxLAklopAe hlHs1CUpNdjbnNFHADeESgt/6Vhl4duyfWJfd4Q4DqZhJEDCXIohWQ+xV5q6vXlqM4C/+hM3D1O3Q SwdqMuin1I8pjQdZVkuDAnCcy1hpH+aqLmYGzojA6vtCKn8l5wDEJqaiv7JyxJ9v+IyG9VHu5GOCP TDZSQsLAhwMkPOsb30jEZw/XSRiqfzp0YsDrTdxh3PI1k2COGy8dywW8yjBv0xwqjlxt/qWVKsKZl y9SMV97NUMeWJP80xqcfTSA7HtOND5LWzvqRQ+ERzBdK/tkTSieB2KIOiiQFxn4gcM02gDuZW4SFx eR5tBK9A==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1qhHXM-00BUtO-2p; Fri, 15 Sep 2023 22:43:44 +0000 From: Luis Chamberlain <mcgrof@kernel.org> To: axboe@kernel.dk, agk@redhat.com, snitzer@kernel.org, philipp.reisner@linbit.com, lars.ellenberg@linbit.com, christoph.boehmwalder@linbit.com, hch@infradead.org, djwong@kernel.org, minchan@kernel.org, senozhatsky@chromium.org Cc: patches@lists.linux.dev, linux-block@vger.kernel.org, linux-mm@kvack.org, linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, dm-devel@redhat.com, drbd-dev@lists.linbit.com, linux-kernel@vger.kernel.org, willy@infradead.org, hare@suse.de, p.raghav@samsung.com, da.gomez@samsung.com, rohan.puri@samsung.com, rpuri.linux@gmail.com, kbusch@kernel.org, mcgrof@kernel.org, Christoph Hellwig <hch@lst.de> Subject: [PATCH v3 2/4] iomap: simplify iomap_init() with PAGE_SECTORS Date: Fri, 15 Sep 2023 15:43:41 -0700 Message-Id: <20230915224343.2740317-3-mcgrof@kernel.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230915224343.2740317-1-mcgrof@kernel.org> References: <20230915224343.2740317-1-mcgrof@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 84D99140014 X-Rspam-User: X-Rspamd-Server: rspam02 X-Stat-Sign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Ucugg7+EY2RV+NNOc9zSp62K63hzdBz1rSD2ranBoO1d8+Rcx2smoKFshpF+pg8rRhiIsAqBjOi0sILzEWGcaOmnthOkRu58pVLmOjTfesZbzx1XlkxMGvyBFhREYq4HDmflO/Lj/RncYZfja8u5gpkEpYz2tvbYcn/Us8G5chbfcac8Mr8326zEk8buSNgkCX1NLycgD+fgPA8N0Mi/KtGP/S/WPJeVQbT3TQ2WoOYt2RkMju/E7mPYFP9w6AFA920sTUr66xzO4O7btegcBrIGi7G6jP+JncChiz+Rr+lE9I4lrlYF55CkNffuspIhXHwcAiJcIpnD3p3jMz3uhhlYdEkcyIMyYqRautBiIMsHBY9WRMAF/zvKFs/utIvTOfq5cJCwqXBK0lxf5phPjs2G6jGIDS832QQU3ym0yJZ6WlDOI0DbW6YaoTlrsWYp+EJxNO2lxcif7Xq1jFBXnIJjdUNxMjEP2sRkjh8K0Ia0FhJ4dsIA= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
block: simplify with PAGE_SECTORS_SHIFT
|
expand
|
Looks good,
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
diff --git a/fs/iomap/buffered-io.c b/fs/iomap/buffered-io.c index ae8673ce08b1..1a16c0e5d190 100644 --- a/fs/iomap/buffered-io.c +++ b/fs/iomap/buffered-io.c @@ -1985,7 +1985,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); }