Message ID | 20230612153201.554742-10-catalin.marinas@arm.com (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 D3EB3C88CB4 for <linux-mm@archiver.kernel.org>; Mon, 12 Jun 2023 15:32:51 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 5361C8E000B; Mon, 12 Jun 2023 11:32:51 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 4E5BB8E0002; Mon, 12 Jun 2023 11:32:51 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3871E8E000B; Mon, 12 Jun 2023 11:32:51 -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 2B2678E0002 for <linux-mm@kvack.org>; Mon, 12 Jun 2023 11:32:51 -0400 (EDT) Received: from smtpin13.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id F31A51C794E for <linux-mm@kvack.org>; Mon, 12 Jun 2023 15:32:50 +0000 (UTC) X-FDA: 80894488500.13.75AE97D Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf15.hostedemail.com (Postfix) with ESMTP id C91CEA002C for <linux-mm@kvack.org>; Mon, 12 Jun 2023 15:32:48 +0000 (UTC) Authentication-Results: imf15.hostedemail.com; dkim=none; spf=pass (imf15.hostedemail.com: domain of cmarinas@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=cmarinas@kernel.org; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=arm.com (policy=none) ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1686583968; a=rsa-sha256; cv=none; b=zNtIJsLpxQayGno+TaHbZ7vAmZTX2f2R1fbF43CIJv6xIkhuwKE+3qMLpmaKbRyQ1rjtLT czVjq23pMMvG8r0UXiFlE0GDFNGwKvXHDx5TV2CMDVjaQrG2wRLagTibnfBkfnjzz9OPpr Toz2l5RAb8VsA6AC/joSGzv9DpRBbFk= ARC-Authentication-Results: i=1; imf15.hostedemail.com; dkim=none; spf=pass (imf15.hostedemail.com: domain of cmarinas@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=cmarinas@kernel.org; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=arm.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1686583968; h=from:from: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; bh=mmajKpEVlHnP6XYxFnPEi7/dHxMZM/L92V9DBRbuy/o=; b=Iw3fKgt5DGG01+QwOCN4XZ7iqNb3QWLjgVggMjo5m7at7I9wl1MMBpnfyiz0u0evrxu3d5 RUY0aXAgral76oIKxmeqOaku7fq0xrOtrZLeKLJw8SCPBGoFx+b1wmVryVLwgAu9Pdl0CR M2gkgqkh8iS8k+kBM/AIJtMcVwMgkxw= Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id DD86F629B3; Mon, 12 Jun 2023 15:32:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5183DC433A0; Mon, 12 Jun 2023 15:32:43 +0000 (UTC) From: Catalin Marinas <catalin.marinas@arm.com> To: Andrew Morton <akpm@linux-foundation.org>, Linus Torvalds <torvalds@linux-foundation.org> Cc: Christoph Hellwig <hch@lst.de>, Robin Murphy <robin.murphy@arm.com>, Arnd Bergmann <arnd@arndb.de>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Will Deacon <will@kernel.org>, Marc Zyngier <maz@kernel.org>, Herbert Xu <herbert@gondor.apana.org.au>, Ard Biesheuvel <ardb@kernel.org>, Isaac Manjarres <isaacmanjarres@google.com>, Saravana Kannan <saravanak@google.com>, Alasdair Kergon <agk@redhat.com>, Daniel Vetter <daniel@ffwll.ch>, Joerg Roedel <joro@8bytes.org>, Mark Brown <broonie@kernel.org>, Mike Snitzer <snitzer@kernel.org>, "Rafael J. Wysocki" <rafael@kernel.org>, Jonathan Cameron <jic23@kernel.org>, Vlastimil Babka <vbabka@suse.cz>, linux-mm@kvack.org, iommu@lists.linux.dev, linux-arm-kernel@lists.infradead.org Subject: [PATCH v7 09/17] dm-crypt: Use ARCH_DMA_MINALIGN instead of ARCH_KMALLOC_MINALIGN Date: Mon, 12 Jun 2023 16:31:53 +0100 Message-Id: <20230612153201.554742-10-catalin.marinas@arm.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230612153201.554742-1-catalin.marinas@arm.com> References: <20230612153201.554742-1-catalin.marinas@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspam-User: X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: C91CEA002C X-Stat-Signature: wgkfh7r1cj9gthpntmh961z7gg4h1wiw X-HE-Tag: 1686583968-295161 X-HE-Meta: U2FsdGVkX19fwm7ZVoxIibgFD+mS72NHQorQvBvRXhuooy7ZA6qFNV76YaIWhvM3eHyrLr86GTA3QxQkMTmmPl5Uy3fCoNZuWLcNsqdfGPJ592L0W5rzAlUbZ5E8Q8pQBgrXOJtnedWHrKiawN0/+SgvoGl06G18J/82aFqdYKEmZxgVLtYugJX/5OC4T5jbb1GKeR+vZvfGKDs3er9/4UEf+Qa/g9pMjYQpi8s9wkUMLu+xOnUp6r+RGebcyI1oZi4CyD2jz4mt0L51X2zlRhVuRStsIdl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67MezCHkdiarcjurQTvKbMcbMgN6wwL5jGfgv6K4oF99HG5VGbmGUjPkyd6V7gCflvGrN6CR1XI5E4ZBkFWSSYwoeSzBmjYeUM3L8kjD0XiTpXJ6X2zrnQUNbVFKN68EuLXwESjLCTzGdhK0dkfqhHlZx7M7nlHWvLYtzRU2IFxfeR5EJbiiKxNwMWncUowlCs7hiknc2Wa0hBUNq19mQ4+j4hK1yYkx9Y9CrnTKLEXslwMBp3S2/g= 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 |
mm, dma, arm64: Reduce ARCH_KMALLOC_MINALIGN to 8
|
expand
|
diff --git a/drivers/md/dm-crypt.c b/drivers/md/dm-crypt.c index 8b47b913ee83..ebbd8f7db880 100644 --- a/drivers/md/dm-crypt.c +++ b/drivers/md/dm-crypt.c @@ -3256,7 +3256,7 @@ static int crypt_ctr(struct dm_target *ti, unsigned int argc, char **argv) cc->per_bio_data_size = ti->per_io_data_size = ALIGN(sizeof(struct dm_crypt_io) + cc->dmreq_start + additional_req_size, - ARCH_KMALLOC_MINALIGN); + ARCH_DMA_MINALIGN); ret = mempool_init(&cc->page_pool, BIO_MAX_VECS, crypt_page_alloc, crypt_page_free, cc); if (ret) {