Message ID | 20230526073336.344543-4-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 4D757C7EE2D for <linux-mm@archiver.kernel.org>; Fri, 26 May 2023 07:33:53 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 9FA91900005; Fri, 26 May 2023 03:33:49 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 887AE900003; Fri, 26 May 2023 03:33:49 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 686EA280003; Fri, 26 May 2023 03:33:49 -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 4DA14900004 for <linux-mm@kvack.org>; Fri, 26 May 2023 03:33:49 -0400 (EDT) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 18CE480D66 for <linux-mm@kvack.org>; Fri, 26 May 2023 07:33:49 +0000 (UTC) X-FDA: 80831591778.06.776EFD7 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) by imf04.hostedemail.com (Postfix) with ESMTP id DE60340017 for <linux-mm@kvack.org>; Fri, 26 May 2023 07:33:45 +0000 (UTC) Authentication-Results: imf04.hostedemail.com; dkim=pass header.d=infradead.org header.s=bombadil.20210309 header.b="TvnkXj/I"; dmarc=fail reason="No valid SPF, DKIM not aligned (relaxed)" header.from=kernel.org (policy=none); spf=none (imf04.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=1685086425; 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=FJ06IRMbDJJrXOTKvODn3h7mdJ3kw+A63u/ZaBgMzfY=; b=Y9tiMafOXE1T3f2FoNWMNK0b69X5zpsNWPpDZVa7zNCgAiie0MN8JWq1faed580RvBmwI3 Pz5xEEeXB4wfsSFQWYQHqIWXX7stCN1utxgbbakE4Rc3I+4jE2gvS1QeQSD1Fe62a6V9cd s+jANxtDZ4GOJ443x7371WGHsyqBmlo= ARC-Authentication-Results: i=1; imf04.hostedemail.com; dkim=pass header.d=infradead.org header.s=bombadil.20210309 header.b="TvnkXj/I"; dmarc=fail reason="No valid SPF, DKIM not aligned (relaxed)" header.from=kernel.org (policy=none); spf=none (imf04.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=1685086425; a=rsa-sha256; cv=none; b=tTlrwLi8eCJfA68+vcD5Gc/BRRHzjl6ZiADznKwVwUMd4dXNw3jhyQUcKA0DQqHE79LMZG 3pQKwohqtQ2CP7O/sFBG3YGX5ARhWE99ZHqLexaH3dwSiSc4+hQqdS/BMrdaxEweZU/w1L gmtIsDI8byZlNBfGBr0sw0RRo05OZew= 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=FJ06IRMbDJJrXOTKvODn3h7mdJ3kw+A63u/ZaBgMzfY=; b=TvnkXj/I5pCGoRzwSTLwGngHMk E/yOSJcwi8/rld1LFK0la1ONOTYE8kgf0sYeSy7EeAw2M9xM5dchixMhcAFI/dyqAGMeMxn0UGWi1 Z/L2v0EUnETlmhx6yMZ2Pkv6KIyQ8DKIRJ9Z3+q5vWbT43/UJgv8w1w9fmLU9F4PjN8odpQtJNiIB V0/+D3Bej6fJHhwfmMBkg/16PEO3VhSIPA07vAmIXi2OuTn4BsoPVzH5VuDjE1wyPEPK76ic2KxwQ ifNUkHYRpWB9KO5IxFO4z82u0HHr7NQ518//dHvsxFWjq0yZXCx7CPAKr73uGMcywgLPIN9gHZEHu NBTI3fcw==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1q2RxB-001RdW-0P; Fri, 26 May 2023 07:33:37 +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 Subject: [PATCH v2 3/5] iomap: simplify iomap_init() with PAGE_SECTORS Date: Fri, 26 May 2023 00:33:34 -0700 Message-Id: <20230526073336.344543-4-mcgrof@kernel.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230526073336.344543-1-mcgrof@kernel.org> References: <20230526073336.344543-1-mcgrof@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspam-User: X-Stat-Signature: 8snmrnddrutut35fhy3psn81xiqwjtui X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: DE60340017 X-HE-Tag: 1685086425-696504 X-HE-Me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fbAjOQPvzdAmvSjb8fIiZlSsMk3OAT6dqkvAqe6gci1qcN1ppT5mDglrBHW1mgnhrd9T8FsIeiflmRlWlxXNEw2tb6L26hber6sNwWmbGl344UanceI9nT9+tDgdbAlnddXh8O8MT/FkMEf84MLEr4l9IP1G6ebElfJmUV7qbJ0oxx9IufyH5fxWIF1EIBY+X3InD4qcmNjZJtY++FsA0RAG4ZFImV3pPp688hMlAbbVYb1rbJhw+BCu/hRKWh+zKcuCCDhbibY5m/ntZv7BQElQIbMqt8y2iHUQU41YsZ0AE6DgUFFA9LSzmHGD92nmYWWeKpgUb3EI92use9ELxqneK00DSL6eLxiBrcinbj0qo+WwuEaNzM3/0Vn0DGJF97+WDikn9kXLzBd5oJjASFrlw+afMpjKpXW/jTbHtmStFc2r5wbgo= 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: Christoph Hellwig <hch@lst.de>
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 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); }
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(-)