Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp1919326rwb; Thu, 19 Jan 2023 17:50:29 -0800 (PST) X-Google-Smtp-Source: AMrXdXtFnA2kuwNviGSUWYBJ1HcoMnejCkBczy6zAUO03j0toc3Obn5GFsMBLhbwZFP1D8p0gHQb X-Received: by 2002:a17:906:37c4:b0:871:91ec:edae with SMTP id o4-20020a17090637c400b0087191ecedaemr12895525ejc.75.1674179429023; Thu, 19 Jan 2023 17:50:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674179429; cv=none; d=google.com; s=arc-20160816; b=niiVUlndR3ApQgVIO7zv61ds+cTefcNAakRjCB+R5TFiwl/cwMb0Ni6kh4RQdbjHm1 eoxFZI1NzopudBYiB7+4FSQtbIpLDlWzJvhNqryng3wdZPaaPDq3YIV0ZoViXmjdn6aK dqIYeTQmdtEDzMNhagZFFI03IpK4SDYjgpuKr0maAdOrX1yRlth/F9f5vjOnvoyt0wHN qUmTmhPxHa7cAAJP+PfNM2QbQwgTc70CvK9eyL/uIveLZkc+IkVQ0ACjoZvVRCqNvPbX a9/Qn/+aWF6416buF4Rxlzef7+Khy9UuMrrSIPIE0fs0peOUQOCi9xBJPHJh3msCGpCb tmOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=b7srAW+gtFYq/oOlQokHfZ01Lnsj+6AOdclPYQRY58A=; b=JOogdY578px9N1+GEQiES8gPfybZLL7wRuyORF6KCdKhT/RaYOEX3FAl9BUZhqLXcC HaSJ5aTDNTnQ2rYHW4+A9s66fK94QhWs8PxpIO10EQl2fFa8B7gqqGybP8/b4u+la6+U VPQ20oiqU5Mb7B34+5Q+WtNTSIWcKkgR5Mjpc8KXOQ+9qSgWL7EaVji0LbAaV6Gab4EZ lfjA6yKtjrVSR8kamWQtfQndy8f3mDjisQyRCTrbILzcxiiYGAHZmRPRt1sG1oCAmBRO qILeyn3DJla7nk/Ty8wYnIVtr019TyLJYMD1DLpUWbNU8e6m4GyZnOsMzFQPmI/BxTdd 1pUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.org.uk header.s=zeniv-20220401 header.b=g73EFRFs; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zeniv.linux.org.uk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b20-20020a056402351400b0047d7499c995si48391545edd.134.2023.01.19.17.50.16; Thu, 19 Jan 2023 17:50:28 -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=@linux.org.uk header.s=zeniv-20220401 header.b=g73EFRFs; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zeniv.linux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229784AbjATAyN (ORCPT + 46 others); Thu, 19 Jan 2023 19:54:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229481AbjATAyL (ORCPT ); Thu, 19 Jan 2023 19:54:11 -0500 Received: from zeniv.linux.org.uk (zeniv.linux.org.uk [IPv6:2a03:a000:7:0:5054:ff:fe1c:15ff]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03DD545F5E; Thu, 19 Jan 2023 16:54:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=linux.org.uk; s=zeniv-20220401; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=b7srAW+gtFYq/oOlQokHfZ01Lnsj+6AOdclPYQRY58A=; b=g73EFRFs/Kx1HSPyD+g3KYmgea D3M3eO5Dhwm/B7NRF1N/HsyOSY8mr66ro6noUtju6Ue8zcJqK7vYbqfUbSYetivXS9GpYQvKGFnO0 a44YIRu61NBRYHfddZuIjqCX4Q1UCUmqR9BC3gpuQ2HVmpc66pr0hG6n2vMO6nJjoxVZA+CHeJUoz vvh6c5/QsIYEULtjlrtmtxv2A9B+Col+tOomftg7eFTCAfaYGox2YEvhaPYgr3ZfUYHpngn0neZ8R t7Uynm1P/fwsrov8F+qYlAVqJgvvF+18cHTQBI45t4CJhqj+HgHnHApoD3MKrwdNTBHuqiLiev1CM 2ci31cUw==; Received: from viro by zeniv.linux.org.uk with local (Exim 4.96 #2 (Red Hat Linux)) id 1pIffS-002tur-1N; Fri, 20 Jan 2023 00:54:06 +0000 Date: Fri, 20 Jan 2023 00:54:06 +0000 From: Al Viro To: "Fabio M. De Francesco" Cc: 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: <20230119153232.29750-5-fmdefrancesco@gmail.com> Sender: Al Viro X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,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 Thu, Jan 19, 2023 at 04:32:32PM +0100, Fabio M. De Francesco wrote: > @@ -228,6 +239,12 @@ int sysv_delete_entry(struct sysv_dir_entry *de, struct page *page) > { > struct inode *inode = page->mapping->host; > loff_t pos = page_offset(page) + offset_in_page(de); > + /* > + * The "de" dentry points somewhere in the same page whose we need the > + * address of; therefore, we can simply get the base address "kaddr" by > + * masking the previous with PAGE_MASK. > + */ > + char *kaddr = (char *)((unsigned long)de & PAGE_MASK); er... ITYM "therefore we can pass de to dir_put_page() and get rid of that kaddr thing"... Anyway, with that change the series rebased and applied on top of Christoph's sysv patch.