Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2655066pxb; Tue, 23 Feb 2021 12:06:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJxCT6OGlKtGokayUTXU+6YcY+3oJ2/nokGFuMXC1VIQfsHRGtw2Wm3aJQsEhl4ZEkR1Z/7z X-Received: by 2002:a17:906:4447:: with SMTP id i7mr5779372ejp.303.1614110816434; Tue, 23 Feb 2021 12:06:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614110816; cv=none; d=google.com; s=arc-20160816; b=IFGzzBaJ5mjHrTG7suNGBixWEOIcc21WFXDdkTkmZKhcwXIzwPqbs7WzOqi+EiXJYv zKM5FKydZNph61Sltba+oqQSR0oaVKb/Zm9SZ3awicQwoLMZntATW2DOX0x1jG96OgJS tfgdR6SJs2oKMp7pwQohb41ulGr/qH/gsMx4o58RMsn+UuST1Wl3MC9ida3ZIo1gbZqW meJJfKReUNh0iKqp/FDESF2m7ZZ51fkDguROTiVpf82ncliM6QAOR/oVQwGgLP3ttxuz G+hAvLNViz+9Is5EuFpwtGCMLXh64w3JLpLBBxyjRbDqOPeHFQEuB7WbBGGaOz/wSj/E DKlA== 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=l0lZhoa3dmJ6W/wL3TjQ0i4ENPMTPDH4uzwTUL0qFPo=; b=s45QSgVBtqmwGr+fzc9TarWZnYWj1KQWcYFrGklgmsl6FoKzV59YTA11/PHd/yOPpa rXJRLMpAMzpwcXXN5wD163Azi6uIYm2jTQlBGi/uHchg9+q9NpEenR+v0apzpOwnseM/ 3sNgsqv7AOc7UMS4j3b5HoLmZ2vRZzGoWquMgXiYvQpC7Cbw9fPAcVu4t0IZFK99UQyL 9ECjOPjqtqM2V7oO3bqELTY6MMRewFUAEboFTooyRf0JV5wc8KVr/kr05sF+d0+YLfTW 97PI1zWEhdVP3cWc6bhIeO5GKGPZYbmDk6EzjC+xHuzbCK9FbQMHOlo2AZZyfMx4xRgk y92Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=fdm51yzY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p5si15503488edt.50.2021.02.23.12.06.24; Tue, 23 Feb 2021 12:06:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=fdm51yzY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232960AbhBWPFb (ORCPT + 99 others); Tue, 23 Feb 2021 10:05:31 -0500 Received: from mx2.suse.de ([195.135.220.15]:38212 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232695AbhBWPEI (ORCPT ); Tue, 23 Feb 2021 10:04:08 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1614092607; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=l0lZhoa3dmJ6W/wL3TjQ0i4ENPMTPDH4uzwTUL0qFPo=; b=fdm51yzYLQesQMXZx7LTZK/3MXbq5A2WJzulEStY9vO1bwvdtX3amBg4nq/OIZpPC1Zgr6 1KW/e83tmPYyRzGW0ECZE5DJvgvrcxf/Jr5dXzNgNrZzSdKKon0KGx7xSAch8JdPIjY1TV yYumkzRw1POSR/5fPKtfTqkvBtdlHRg= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 75311AFF0; Tue, 23 Feb 2021 15:03:27 +0000 (UTC) Received: by ds.suse.cz (Postfix, from userid 10065) id 290EFDA7AA; Tue, 23 Feb 2021 16:01:28 +0100 (CET) From: David Sterba To: torvalds@linux-foundation.org Cc: David Sterba , linux-kernel@vger.kernel.org, ira.weiny@intel.com, linux-mm@kvack.org Subject: [GIT PULL] Kmap conversions for 5.12 Date: Tue, 23 Feb 2021 16:01:25 +0100 Message-Id: X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: David Sterba Hi, this pull request contains changes regarding kmap API use and eg. conversion from kmap_atomic to kmap_local_page. The API belongs to memory management but to save cross-tree dependency headaches we've agreed to take it through the btrfs tree because there are some trivial conversions possible, while the rest will need some time and getting the easy cases out of the way would be convenient. The final patchset arrived shortly before merge window, which is not perfect, but given that it's straightforward I don't think it's too risky. I've added it to my for-next branch and it's been in linux-next for more than a week. Meanwhile I've been testing it among my regular branches with additional MM related debugging options. The changes can be grouped: - function exports, new helpers - new VM_BUG_ON for additional verification; it's been discussed if it should be VM_BUG_ON or BUG_ON, the former was chosen due to performance reasons - code replaced by relevant helpers Please pull, thanks. ---------------------------------------------------------------- The following changes since commit 92bf22614b21a2706f4993b278017e437f7785b3: Linux 5.11-rc7 (2021-02-07 13:57:38 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux.git kmap-conversion-for-5.12-tag for you to fetch changes up to bbc24c42f2c0ea037db3c7f319c860fd790aeb28: btrfs: convert to zero_user() (2021-02-11 20:18:25 +0100) ---------------------------------------------------------------- Ira Weiny (8): mm/highmem: Lift memcpy_[to|from]_page to core mm/highmem: Convert memcpy_[to|from]_page() to kmap_local_page() mm/highmem: Introduce memcpy_page(), memmove_page(), and memset_page() mm/highmem: Add VM_BUG_ON() to mem*_page() calls iov_iter: Remove memzero_page() in favor of zero_user() btrfs: use memcpy_[to|from]_page() and kmap_local_page() btrfs: use copy_highpage() instead of 2 kmaps() btrfs: convert to zero_user() fs/btrfs/compression.c | 11 +++------- fs/btrfs/extent_io.c | 22 ++++--------------- fs/btrfs/inode.c | 32 ++++++++-------------------- fs/btrfs/lzo.c | 4 ++-- fs/btrfs/raid56.c | 10 +-------- fs/btrfs/reflink.c | 12 ++--------- fs/btrfs/send.c | 7 ++----- fs/btrfs/zlib.c | 10 +++------ fs/btrfs/zstd.c | 11 +++------- include/linux/highmem.h | 56 +++++++++++++++++++++++++++++++++++++++++++++++++ lib/iov_iter.c | 26 +++-------------------- 11 files changed, 88 insertions(+), 113 deletions(-)