Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp2081265rwb; Thu, 19 Jan 2023 20:44:53 -0800 (PST) X-Google-Smtp-Source: AMrXdXsSmL/wJzlOWAcRRlOc2PASLNV3l7FA4HDlPuELafKNRKpDJ+1S0fZ50+p9cfm7OW4MQ3sy X-Received: by 2002:a17:907:c307:b0:816:ef2a:631a with SMTP id tl7-20020a170907c30700b00816ef2a631amr15919137ejc.31.1674189893596; Thu, 19 Jan 2023 20:44:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674189893; cv=none; d=google.com; s=arc-20160816; b=wi3OpgAiWL7CPvXz+qlkdwB0AJAfW7YjkZ3uKVtKtk45wZswvynN1QFG7jLbGDb9rE oys6/1Op125GEVOvHa8/rALsT9BNlt/suT0gYPxqbiks8MDoRrcbEB2gMhbS8lKub7Vm InsbL02gmtqnTxDhqykJscOAaSomPkyiDNQCYQnDHX6tcEl6z6PbYXOBjOpofa8tqA9l jscvbyfpHfCEimItZZFg/BnUUFEfWMZSE5kmM3yIc/9TF0MYT3pcFAyY2GAnLglXAq0U Bu+msJU8gQVuHKasbQRQSsaC7N58lwBHHyDgCMDryTnqkJBjxSQM5ivLqsNNiyvMa3IT 8yvg== 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=1AI2BoTZ1TxiBr87rR6t97wpf7nTvA1VN4SaoYxdtVI=; b=soMhZqig6KMcpd2esqrkxX1t/mFZusuamNyQXNI3RmwqAdzfXqIqx+QSttscRvZ7eT Q2786lvifHrcTQhEwC0U7xk1IeMgZOk/TqOdnM/UW69S0vlZe/CWQPS11/pIukQj9msg 7GrhcazwulwZNddteO9qZ13eHybFOubfhvQ7WhGeffZdmdyTY7+zPnAI+f+WJFhiSSGD ops72jou8hNqrO6E10+brK3PLpnk68Y6XkbFgOP7Hw4nHfh+dH4iOf/tGc2LoPZH4491 dZVtndyLev+deEyLF5rr10bBH5lwZ4ekxBgScdZdLXoNP/4q3xeSmASr36Lp+7QrxLTI 5BYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=qN94m404; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hz1-20020a1709072ce100b008776f852d6csi4740232ejc.902.2023.01.19.20.44.41; Thu, 19 Jan 2023 20:44:53 -0800 (PST) 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=@infradead.org header.s=casper.20170209 header.b=qN94m404; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230023AbjATE2m (ORCPT + 47 others); Thu, 19 Jan 2023 23:28:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229921AbjATE23 (ORCPT ); Thu, 19 Jan 2023 23:28:29 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B054B1EFD; Thu, 19 Jan 2023 20:28:19 -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=1AI2BoTZ1TxiBr87rR6t97wpf7nTvA1VN4SaoYxdtVI=; b=qN94m404d4LRMeZ5oPMDLZ73R8 UJTm3lSLb/Wf64W4drKAhPLGoZ94PwKS4FxnvuZ4WvNs1mlv+I0vx+3DWy8DS7exbop92N8GBHsPT hNdWGMRk7y0LHjYIYWYNCVvl/YVunxE1HmgKubmAwVAko9zDhVusnCfeiG+E2IkN3BVNH8nuaiacI wxWICtfAtT3ZizSRF0ElUdR9nWIncSsMvbxfDXT0hDt4AsaXDj5TVP7iDIjarWjcs8Spg7zEsg5mO atg58RoSz4SokTF6Qqnzfyx2cXcAzACvkSHjQOpJ4/OYQYv0LY2z6g/iSN3WcioYuPIwkx9CgJcu7 qDzj22pA==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1pIj0e-001eSU-N9; Fri, 20 Jan 2023 04:28:12 +0000 Date: Fri, 20 Jan 2023 04:28:12 +0000 From: Matthew Wilcox To: Al Viro Cc: "Fabio M. De Francesco" , Christoph Hellwig , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Ira Weiny Subject: Re: [PATCH v3 4/4] fs/sysv: Replace kmap() with kmap_local_page() Message-ID: References: <20230119153232.29750-1-fmdefrancesco@gmail.com> <20230119153232.29750-5-fmdefrancesco@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE 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 On Fri, Jan 20, 2023 at 04:21:06AM +0000, Al Viro wrote: > On Thu, Jan 19, 2023 at 04:32:32PM +0100, Fabio M. De Francesco wrote: > > > -inline void dir_put_page(struct page *page) > > +inline void dir_put_page(struct page *page, void *page_addr) > > { > > - kunmap(page); > > + kunmap_local(page_addr); > > ... and that needed to be fixed - at some point "round down to beginning of > page" got lost in rebasing... You don't need to round down in kunmap(). See: void kunmap_local_indexed(const void *vaddr) { unsigned long addr = (unsigned long) vaddr & PAGE_MASK;