Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1675110pxu; Tue, 24 Nov 2020 06:24:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJw2SX4mK40nh0XJ4k+QOdKHuXr7Br5WqdP8UC1t5RZq5t/hwec/FA0pNaupKUcEGV/jMhci X-Received: by 2002:a50:8f06:: with SMTP id 6mr4264557edy.39.1606227844162; Tue, 24 Nov 2020 06:24:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606227844; cv=none; d=google.com; s=arc-20160816; b=yvOqNrQI8HulZkhm1/XT/sXIgjdjEiPyGDdJ+1K8DlCMkFbVbmiVbkQTp3TYyFm/g6 vobtBgeXm5lwR1UJBGd/s2zD3WD+j0dunwZ4YVbgIGc/RV0V6RQ5ilAyOGKNHY2B8wtR aWCuCn5UFgrOmHz6DK9ZLIPlZFaOZvyUvJYyq9h2wuFDVnqZkXcLjQkpCoYu7zKz7mDF F8NKyRSMUin6ebid3BvovTlxIeSS1Set8t9w+/w9YU0gHgTsckazPZxR72HM05SJh7Rk muXoZnsjWf76RZmxO9kysYb1vthuqKxBiMg3zVemd4tKklaM55DMav+bo0FufJ5zs5wz nQRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=lCJuGvEXhGVtkMxPpM35X/PsPMXYs4s7j54JBm6CPhQ=; b=ZsUvxMHkdzz3Ya6JHtUmS1WmOLCmGtJueJTifeM5wKG4xIVEbtRqpC8vM5zJVVNV37 kJDFGjRBs3n7zExbdHKz/mZ7T802n0Yc3LG5fXaZf5RHL9C3wgz7s4RIoiyq+wlVzQJI 83Q9koueeoFutW9a2XSDUY7660+llBPtiD1Lq8DTvCrVTDsDidbUs6rkjMZ70TB2Aoif EpmRU2Dw2/VxnswaiZVn4rKLBT1XDE2WyLk6e1m2lPhzm+6xzcLrDgjdiPo2iIGCUZ6N /4MCAvLyz27pyAWHwCPJmU4bicCU0H+T0oI4pP6jaiFDiske1sWhv6jods87edtpD/0p 4eMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=as4wsJEP; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a21si8424149ejd.281.2020.11.24.06.23.39; Tue, 24 Nov 2020 06:24:04 -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=@infradead.org header.s=casper.20170209 header.b=as4wsJEP; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388656AbgKXOUg (ORCPT + 99 others); Tue, 24 Nov 2020 09:20:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726760AbgKXOUc (ORCPT ); Tue, 24 Nov 2020 09:20:32 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB43CC0613D6; Tue, 24 Nov 2020 06:20:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=lCJuGvEXhGVtkMxPpM35X/PsPMXYs4s7j54JBm6CPhQ=; b=as4wsJEPyN7AbT6hYhmyY71R4/ EUgHBRcOa+6QHUb2uTS1FNVr35DuEHom7w8q5+vfEy1lfsSMja4EnUl07Ioaw/BVvP3g3dX/Fz3jj n8O4DzrOrycv7GgS8yqUG+x7+kRiHeqR/qAyDBrQfYU+y9GuoOMUpjXcVqgra+EGGrTk6yfhCZQhm JK+Se6heZvGAqndPAwFIIcvJtszvPPz1W/NM9WYZ8sjDKSaUyDo6xoHuGI7qbDj09QUL1bjVLAVfp RkyEwVRZker2pYu9SW++MxaftZETRaN/+HyshNONSP1z02VgbtexthQvBdVe23RWL2ehe6+ecz8uu YuqMBXRg==; Received: from willy by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1khZAT-0002uo-EZ; Tue, 24 Nov 2020 14:19:41 +0000 Date: Tue, 24 Nov 2020 14:19:41 +0000 From: Matthew Wilcox To: ira.weiny@intel.com Cc: Andrew Morton , Dave Hansen , Christoph Hellwig , Dan Williams , Al Viro , Eric Biggers , Thomas Gleixner , Luis Chamberlain , Patrik Jakobsson , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , David Howells , Chris Mason , Josef Bacik , David Sterba , Steve French , Jaegeuk Kim , Chao Yu , Nicolas Pitre , "Martin K. Petersen" , Brian King , Greg Kroah-Hartman , Alexei Starovoitov , Daniel Borkmann , =?iso-8859-1?B?Suly9G1l?= Glisse , Kirti Wankhede , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH 01/17] mm/highmem: Lift memcpy_[to|from]_page and memset_page to core Message-ID: <20201124141941.GB4327@casper.infradead.org> References: <20201124060755.1405602-1-ira.weiny@intel.com> <20201124060755.1405602-2-ira.weiny@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201124060755.1405602-2-ira.weiny@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 23, 2020 at 10:07:39PM -0800, ira.weiny@intel.com wrote: > +static inline void memzero_page(struct page *page, size_t offset, size_t len) > +{ > + memset_page(page, 0, offset, len); > +} This is a less-capable zero_user_segments().