Message ID | 20210723225020.fbnIBOjkH%akpm@linux-foundation.org (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <SRS0=htka=MP=kvack.org=owner-linux-mm@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D120CC4338F for <linux-mm@archiver.kernel.org>; Fri, 23 Jul 2021 22:50:22 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 99C6160F37 for <linux-mm@archiver.kernel.org>; Fri, 23 Jul 2021 22:50:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 99C6160F37 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvack.org Received: by kanga.kvack.org (Postfix) id 4579E6B0074; Fri, 23 Jul 2021 18:50:22 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 4075A6B0075; Fri, 23 Jul 2021 18:50:22 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 31DF06B0078; Fri, 23 Jul 2021 18:50:22 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0237.hostedemail.com [216.40.44.237]) by kanga.kvack.org (Postfix) with ESMTP id 193A56B0074 for <linux-mm@kvack.org>; Fri, 23 Jul 2021 18:50:22 -0400 (EDT) Received: from smtpin21.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id D070624386 for <linux-mm@kvack.org>; Fri, 23 Jul 2021 22:50:21 +0000 (UTC) X-FDA: 78395347842.21.9313EAC Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf12.hostedemail.com (Postfix) with ESMTP id 80E41100787C for <linux-mm@kvack.org>; Fri, 23 Jul 2021 22:50:21 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id 89EBD60F43; Fri, 23 Jul 2021 22:50:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1627080620; bh=VT0jA7M4m+6KxrRNuoL7f5ibGCYI46+8v9WeUxzFHEI=; h=Date:From:To:Subject:In-Reply-To:From; b=IJ2IBWzDQmXZaqmmKEwGAsB2C1/0AM8Qi1/9ybFRDSA8/+3cjuEAaLg+du5ZJSfx3 IO/qywRCoAgcu4hCSdzz6LYFZfYpdBIwYLpSPNdDyEpQ5JoUv/C3zZs5URE16Ft2lY VFFGEK8m9jKhAnsOOXwYlVInajZuv+fudNRklRag= Date: Fri, 23 Jul 2021 15:50:20 -0700 From: Andrew Morton <akpm@linux-foundation.org> To: akpm@linux-foundation.org, chaitanya.kulkarni@wdc.com, hch@lst.de, ira.weiny@intel.com, linux-mm@kvack.org, mm-commits@vger.kernel.org, torvalds@linux-foundation.org Subject: [patch 07/15] mm: use kmap_local_page in memzero_page Message-ID: <20210723225020.fbnIBOjkH%akpm@linux-foundation.org> In-Reply-To: <20210723154926.c6cda0f262b1990b950a5886@linux-foundation.org> User-Agent: s-nail v14.8.16 Authentication-Results: imf12.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=IJ2IBWzD; spf=pass (imf12.hostedemail.com: domain of akpm@linux-foundation.org designates 198.145.29.99 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org; dmarc=none X-Rspamd-Server: rspam02 X-Stat-Signature: 53hcne9bp5cgtp4r6ej8ndanhs71mg4g X-Rspamd-Queue-Id: 80E41100787C X-HE-Tag: 1627080621-858069 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 |
[01/15] userfaultfd: do not untag user pointers
|
expand
|
--- a/include/linux/highmem.h~mm-use-kmap_local_page-in-memzero_page +++ a/include/linux/highmem.h @@ -324,10 +324,10 @@ static inline void memcpy_to_page(struct static inline void memzero_page(struct page *page, size_t offset, size_t len) { - char *addr = kmap_atomic(page); + char *addr = kmap_local_page(page); memset(addr + offset, 0, len); flush_dcache_page(page); - kunmap_atomic(addr); + kunmap_local(addr); } #endif /* _LINUX_HIGHMEM_H */