Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1185936iog; Thu, 16 Jun 2022 00:22:05 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s8cheYMw8kMCwG0EkJIxSG4GtEsTHsralcJwGvMw9HYRngRitT4nDuH4ibz6DyQxc3Rkrk X-Received: by 2002:a17:906:5350:b0:711:f866:ed8 with SMTP id j16-20020a170906535000b00711f8660ed8mr3115991ejo.441.1655364125017; Thu, 16 Jun 2022 00:22:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655364125; cv=none; d=google.com; s=arc-20160816; b=GraigXBrb3sU/d5MRSGrlVLLQr/8j33WjB7z1uMmvQ/QLOEZYYkHwdNa4NBoDdM2Kp pcBhesVlbFtGXVmVqfh1R0MnQt1a/jJrd3S77x0r9FLp91sZE6q2qFyD9f7uFH5+pLru smgK1gd78QY25XNHJVwlZbhr7MbdUfuMryuyICsayulDUG2tmfRhrKvrloeFLR4nFC0m q+0YJ6ywdPFwpjHHUQJM4M9bkVA87LwpPySTFP5T/ZxX5ngNT+f9J5wwtkBQRH3vp6tO 3dneKaxPKtjb3LdjaSndgg30XTm76HeivgmVTrtRvRuZGLXHLPzLIS4CKa+ms6rumS8B EZRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=2VF5mujp1z61uQ0mQB70iLU3OS1JG7+caH2G4EBII08=; b=MBkkHUAZ/8UlVRdYGHgYTWuchx06VmPj7tr4OLltzIZXCCzs8Cd+vHw8x8a6H/J0yL HJqxVEdzgfY4a6p8/2kWBBQo2oVMUsi43PFo/k7KhWF3mitr0z+gPfkicwZDOaM6fgmO qTEqdLy688R5u71N7GWLxy2PrN81bNeO533OO6+LPruiurUvEScJRpFqFbgaXFTjkns0 sZyQUT+vmA1WtmAEnKmPMv0IQwKcoaQQm9uHLJU79lVDF3534Cig/dI2RBB6BV87JIhP DfeZ166vfOQVmxgoOxW5foQktnFl8ITNJoEqP5M0xEsSXCDDM0s9HnOD60/UhVYtuT5Q wsBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=WU8hXUA+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v18-20020a056402349200b0042abd66882fsi1866451edc.570.2022.06.16.00.21.37; Thu, 16 Jun 2022 00:22:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=WU8hXUA+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1358999AbiFPHQF (ORCPT + 99 others); Thu, 16 Jun 2022 03:16:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229462AbiFPHQE (ORCPT ); Thu, 16 Jun 2022 03:16:04 -0400 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 481845BE43; Thu, 16 Jun 2022 00:16:03 -0700 (PDT) Received: by mail-wm1-x331.google.com with SMTP id j5-20020a05600c1c0500b0039c5dbbfa48so2310736wms.5; Thu, 16 Jun 2022 00:16:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=2VF5mujp1z61uQ0mQB70iLU3OS1JG7+caH2G4EBII08=; b=WU8hXUA+yVaep+QEcxhWHmWYUCilcwoRWHUOmIpiZhraomm9XXJebUGTeAH/uGfwRV CgwIvfXINDHlYVfWyUAZTIa92q/ifIu7UnRq++Gd2blXDjF0kpcd8rwfbcsYaYbskKDm LL21lPAjo3j82G30dAVcWgm/+piJCO9qwTjj5Akuz6nwdtRTE4v0iSGX8N/CBH8+7rpv ZfYW6jWO9h3XUEzf048jvyGIRp8IFxEtkEQq8HpkP9ECqtKC4I0yBHbdgHnefaqIZMVu EChRbcV3eD9z5qb+ajygs24ULtuOsrJXmhZFqGgHsU0fhS7v4DRRODqG71Rki584/VJq xoUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=2VF5mujp1z61uQ0mQB70iLU3OS1JG7+caH2G4EBII08=; b=7mGKzP5Pt2pujfXlo/Za8/WPEtXbMUiwmxnmejns7alPGJSpfit+vGBHMGTfxm3NQ5 4lNi+yVQrwSfxjGa4dTsWgG+mSSu0E8EA0QKEhR46Kb7YLWRYXpM9FhYXTt2Q/kKFaIm fyrVMe4wnxZY+etaC2TVi5nwq1bg+N6XF+QIkZivrEVr5Oe9VeFe+pxbFNI7oMvFVNmI CBsFruGa7l3x0Mv18IoFo96swBiWse7DH5KYmCAyIBbBUkqyedHW+MyAMWK0nhe54sHN 30/+dnE2J6AthB+SgtnxKjOmuap267ekPk8p4W6lJ5zXkYeVd9J81JtIwT7gzKvxgsqb tokw== X-Gm-Message-State: AOAM530p414uX6ATldFH2IRg2ij5ZiKSsTsNOs+CPOw/bTOingwgsEnc 92ECxYNWmAd8N8hjSsS+exjKLwOzCWg= X-Received: by 2002:a7b:ce12:0:b0:39c:3cd4:4dd8 with SMTP id m18-20020a7bce12000000b0039c3cd44dd8mr13914943wmc.181.1655363761770; Thu, 16 Jun 2022 00:16:01 -0700 (PDT) Received: from localhost.localdomain (host-87-16-96-199.retail.telecomitalia.it. [87.16.96.199]) by smtp.gmail.com with ESMTPSA id o10-20020a1c4d0a000000b003942a244ee6sm1242770wmh.43.2022.06.16.00.15.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jun 2022 00:16:00 -0700 (PDT) From: "Fabio M. De Francesco" To: David Sterba Cc: Chris Mason , Josef Bacik , Nick Terrell , linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org, "Fabio M. De Francesco" Subject: [PATCH v3 0/2] Replace kmap() with kmap_local_page() in zstd.c Date: Thu, 16 Jun 2022 09:15:49 +0200 Message-Id: <20220616071551.12602-1-fmdefrancesco@gmail.com> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is a little series which serves the purpose to replace kmap() with kmap_local_page() in btrfs/zstd.c. Actually this task is only accomplished in patch 2/2. Instead patch 1/2 is a pre-requisite for the above-mentioned replacement, but, above all else, it has the purpose to conform the prototypes of __kunmap_{local,atomic}() to their own semantic. Since those functions don't make changes to the memory pointed by their arguments, make those arguments take pointers to const void. This little series has version number 3, despite it's the first time the two component patches have been re-united in a series. This may be a questionable choice, however patch 1/2 should be at its v3 and patch 2/2 should be at its v2. I've tried to preserve the logs of version changes, so, as said, this new series carries v3. Fabio M. De Francesco (2): highmem: Make __kunmap_{local,atomic}() take "const void *" btrfs: Replace kmap() with kmap_local_page() in zstd.c arch/parisc/include/asm/cacheflush.h | 6 ++-- arch/parisc/kernel/cache.c | 2 +- fs/btrfs/zstd.c | 42 +++++++++++++++------------- include/linux/highmem-internal.h | 10 +++---- mm/highmem.c | 2 +- 5 files changed, 33 insertions(+), 29 deletions(-) -- 2.36.1