Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3230643pxb; Fri, 5 Nov 2021 11:59:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyeDT9ki86SgwQtKPwgT+8G3pWwy9aCUsM+u6DHoyVJqLCNK0YPbcEuFqMuSa6gQs8fBio0 X-Received: by 2002:a17:906:7d09:: with SMTP id u9mr75506125ejo.120.1636138761176; Fri, 05 Nov 2021 11:59:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1636138761; cv=none; d=google.com; s=arc-20160816; b=WYXdQXzV4hxfIy+3YZM6gjKLxuQCzy19axerHrNkydcBp/iIxsUhvCFanGpjUaoMmb qCm+7cOC32yIcarTNqouHV5mnoNrBuFYMfk5QPnOGCj5UHd7XblGrWdjBY+QPVEfVRE4 3M48Q1/99RYSmQzkLI4v2fU7jdUBQOk4x87xWf1iTChNQU8epaH+TljzSjvozXbUkggl nOn05Rhoksb4oDJHLap0o/XL4nR9/1GOuC9FMqGnC6ZqnNDIgBixElzXYv4CdtOyaafF aECqQgHrmMS0AMPmu0aGi6TJJTu+gxuRG5YeYl/QxjCAs6tQvjfqI2uFQGLTtKzEMLVN xR9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=zG1v02RrMPsBMGd06g2oYSyt8HX8B8T3OX4NZkVh8oM=; b=pzpWwSuau2d57SjJeN3Qz2cLJlZdRNv63S689EO8i2oIWW490yd77ZC1VIQsW+yZsM 2gu3BiWbJz7yx5U0eVpqjBS/h/NtV1QFjeZ/aS/s6fMpS6Buhb3xPhYuNvtyv59VBBdV t59CYnTc56st+aHOLjMfQ4bfojOsLqCiM93LbffGufScy2/Pfo0llLuOuzsl/2KvYJIT 9x7LyYo8NcI+1JpjRkluH3P8eqxe2DLWKB6razH0vcWrXUXkgTBPi5VrS1xamoZiC3XF hwqAaomvq/NT14KyiRw3/st6wNO0iI/LB/XEyG6I96xFSRlI+Oa7lFWmr8zT1q8GwD// l+Mg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qb35si16416163ejc.667.2021.11.05.11.58.57; Fri, 05 Nov 2021 11:59:21 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234231AbhKERHW (ORCPT + 99 others); Fri, 5 Nov 2021 13:07:22 -0400 Received: from mga09.intel.com ([134.134.136.24]:49761 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234216AbhKERHV (ORCPT ); Fri, 5 Nov 2021 13:07:21 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10159"; a="231786284" X-IronPort-AV: E=Sophos;i="5.87,212,1631602800"; d="scan'208";a="231786284" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Nov 2021 09:58:59 -0700 X-IronPort-AV: E=Sophos;i="5.87,212,1631602800"; d="scan'208";a="450638454" Received: from iweiny-desk2.sc.intel.com (HELO localhost) ([10.3.52.147]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Nov 2021 09:58:59 -0700 Date: Fri, 5 Nov 2021 09:58:59 -0700 From: Ira Weiny To: Matthew Wilcox Cc: Andrew Morton , Prathu Baronia , linux-kernel@vger.kernel.org, chintan.pandya@oneplus.com, Prathu Baronia , Thomas Gleixner , "Peter Zijlstra (Intel)" , Randy Dunlap Subject: Re: [PATCH v4 1/1] mm/highmem: Remove deprecated kmap_atomic Message-ID: <20211105165859.GA3538886@iweiny-DESK2.sc.intel.com> References: <20210204073255.20769-1-prathu.baronia@oneplus.com> <20210204073255.20769-2-prathu.baronia@oneplus.com> <20210211003307.GA3158182@iweiny-DESK2.sc.intel.com> <20210211155625.7f8dd5d53e19f88530ddf248@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.1 (2018-12-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 05, 2021 at 04:51:40PM +0000, Matthew Wilcox wrote: > On Fri, Nov 05, 2021 at 01:50:37PM +0000, Matthew Wilcox wrote: > > On Thu, Feb 11, 2021 at 03:56:25PM -0800, Andrew Morton wrote: > > > On Wed, 10 Feb 2021 16:33:07 -0800 Ira Weiny wrote: > > > > > > > > Signed-off-by: Ira Weiny > > > > > > > > This already has my signed off by so I'm not going to 'review'. With Prathu's > > > > testing information I hope this can land. > > > > > > > > Andrew did you see this patch? > > > > > > I did now ;) > > > > > > Tossed onto the post-rc1 pile, thanks, > > > > This patch seems to have slipped through the gaps for a couple of cycles > > now? I found a missed spot in it for CONFIG_HIGHMEM: > > Ugh, sorry, wrong version of the patch. Check! Yea this works for me... I think this should to through as a separate patch because Prathu's has been soaking for some time. No need to complicate it with this. FWIW you can add: Reviewed-by: Ira Weiny When you submit this. Ira > > --- > mm/highmem.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/mm/highmem.c b/mm/highmem.c > index 471d9779a7f4..88f65f155845 100644 > --- a/mm/highmem.c > +++ b/mm/highmem.c > @@ -382,7 +382,7 @@ void zero_user_segments(struct page *page, unsigned start1, unsigned end1, > unsigned this_end = min_t(unsigned, end1, PAGE_SIZE); > > if (end1 > start1) { > - kaddr = kmap_atomic(page + i); > + kaddr = kmap_local_page(page + i); > memset(kaddr + start1, 0, this_end - start1); > } > end1 -= this_end; > @@ -397,7 +397,7 @@ void zero_user_segments(struct page *page, unsigned start1, unsigned end1, > > if (end2 > start2) { > if (!kaddr) > - kaddr = kmap_atomic(page + i); > + kaddr = kmap_local_page(page + i); > memset(kaddr + start2, 0, this_end - start2); > } > end2 -= this_end; > @@ -405,7 +405,7 @@ void zero_user_segments(struct page *page, unsigned start1, unsigned end1, > } > > if (kaddr) { > - kunmap_atomic(kaddr); > + kunmap_local(kaddr); > flush_dcache_page(page + i); > } > > -- > 2.33.0 >