Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp735492lqb; Wed, 17 Apr 2024 09:14:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU08KJbsajiUdHCtETgCvbeID3bB5AEeertFaqFkUIdrD4IqqAXriEZd3r4KGwmV1bTRWNtJ/uQwmQQl8hGV3dxqYTSOyz6mqO3NJW3kQ== X-Google-Smtp-Source: AGHT+IFOGtRKpdZ9DVHKTN3usGmxOB+GrnfMoFvu8oIOUO6opNk8J7wh15S2nLmitij4UzHmBNZi X-Received: by 2002:a17:90b:1a88:b0:2a2:faf4:71da with SMTP id ng8-20020a17090b1a8800b002a2faf471damr8732107pjb.10.1713370479413; Wed, 17 Apr 2024 09:14:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713370479; cv=pass; d=google.com; s=arc-20160816; b=mxYI3oO1LtfQsAAjlQ4rFKBF/KB/AoGnNyWtYsAf3Es7eZbjzABufpDuHPGdNppLQY uUvYwKSioJufLMVaDDSYy0XwY2z8tY5+X6K44XvfxslKdEOuSyY1+O9PbyJ4Soz2bntb 1CwEuGqQBZSyOStCtxLUxgmk79mxVIV0FtkbxZ8qjgkGzzc929O93vpumB/r1/8MoKNE sjyHfnjUV8i52ihyQ+AhGKRpv2pUH+4gPZTr9vPQxWa7zMb+jIutctVmxGip6Y9vRVjV 2/04l41FN/YjRXPwIv2Ao/r8DiFD++tnbq86oQBz74Mt4rN7ItAOwE+7pqmqkKgCamGc K/lA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=zLXbEHaPuRTXl8YXU9P1QgIbiqadkPO+DuLjekRXSPI=; fh=FpA/TNBLV+B0akzCD05BUID0dyfgV3M1b8gmHOyk8ro=; b=b4rW6cby2Y0w4R0Upl6/VsN8rzvp+J6GOO82N9Jj7CRY2Lo7HJuMrEvJxht+I7H0PB rolzg1ivmBpcPmYIyL7McYFnXp7eb9OYlh6W4s4UJj6laGBYGdyxXcRzaAvuYqFjqef+ vYsfwLl6ch1RTVth+/zBSVKO5IQleRw8Mj1L/AATlpivxlYZrNyFxr5TaJUVP1AQxOdu d+buO0DN31HVDfph2AG4vVSLvc8dhqtgkVdu55h0jPdzILLkAhZFQNJ4afEaGNlwAv3l BD1G+cFCkYeMfjk31EYOW8Bgb6B32KYkl6X2y5VyrIfdtr5zYb10a4LJzOAAweJ3Qj6a b1NA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=cygt0x9f; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-148889-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148889-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id p2-20020a17090ad30200b0029e0e07d580si1500400pju.126.2024.04.17.09.14.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 09:14:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-148889-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=cygt0x9f; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-148889-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148889-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id EE9C0286723 for ; Wed, 17 Apr 2024 16:14:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5D10114883D; Wed, 17 Apr 2024 16:14:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="cygt0x9f" Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8B86E1422B9; Wed, 17 Apr 2024 16:14:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=90.155.50.34 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713370468; cv=none; b=UqUFvflO/3Hx8Np/w8w15r65AXjvfcVWmYsbwnOhgxi5snr4Wrrdqx1P9xZ7cb/dv1NAZDsw2e8hZLnzyfGj+R3r5UtCOtA/1+7uaZ7fPzMPecJnKsWFRuJvrjUvaSrvMAoJSKQsEutLvJca+Q7b9h8qEONApc0IPZoB/VH+te8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713370468; c=relaxed/simple; bh=oJHmBwancnmpq+7dNBJ8AHQD4Vg9FUd2fiFyKoboRfM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=BG3m8VFN+pOovesY0dNAbAO+tf33f6qQSstFjDAOgfW+pnAFXroS7FVkt1LqeeeVFyKEJxG8dHZor6ZlX+dp9pvGCd3Iq54dBpoS0Kdz1EepmliDzhV/lJa8Ih4JhRs61Q5xyt2c5xiw8VHhSneZPgbrj0cE+i6A/fwa/FkBf+A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=cygt0x9f; arc=none smtp.client-ip=90.155.50.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org 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=zLXbEHaPuRTXl8YXU9P1QgIbiqadkPO+DuLjekRXSPI=; b=cygt0x9fgIzCrMhVZMNKpXHHel 7pCa+WLpZxMgmqPhQg58IxvWWGRDRTOaMbRJpHd5nCts5Zon3Vi2rLCq9xXzNDvZpOidlCo9EPac0 N1k0Ipi3ls5TIEDhd/T4x8RCzsf/sazVkPSnQaHH3PbWJeYoVfTlYf719WSG4RUHNFcshWiMb2aSB L1ucvLHQb9CGuhREtnCKebK0TcM2HLw8lPf6Te1ktugbGikmTvcK6QxMaR+BXoAZXMR4xdk+/i/Ag W2l5A6dwEB1G6Z2o5Sqyw0DKXEX8U0zycA4o1b4vlObdJ1A05G4486c1BHjKdc5Loji6qh03j+p5/ SeJLDaCA==; Received: from willy by casper.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1rx7vB-00000003GV2-1ZBN; Wed, 17 Apr 2024 16:14:05 +0000 Date: Wed, 17 Apr 2024 17:14:05 +0100 From: Matthew Wilcox To: Kairui Song Cc: linux-mm@kvack.org, Andrew Morton , "Huang, Ying" , Chris Li , Barry Song , Ryan Roberts , Neil Brown , Minchan Kim , Hugh Dickins , David Hildenbrand , Yosry Ahmed , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Ryusuke Konishi , linux-nilfs@vger.kernel.org Subject: Re: [PATCH 2/8] nilfs2: drop usage of page_index Message-ID: References: <20240417160842.76665-1-ryncsn@gmail.com> <20240417160842.76665-3-ryncsn@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240417160842.76665-3-ryncsn@gmail.com> On Thu, Apr 18, 2024 at 12:08:36AM +0800, Kairui Song wrote: > +++ b/fs/nilfs2/bmap.c > @@ -453,8 +453,7 @@ __u64 nilfs_bmap_data_get_key(const struct nilfs_bmap *bmap, > struct buffer_head *pbh; > __u64 key; > > - key = page_index(bh->b_page) << (PAGE_SHIFT - > - bmap->b_inode->i_blkbits); > + key = bh->b_page->index << (PAGE_SHIFT - bmap->b_inode->i_blkbits); I'd prefer this were key = bh->b_folio->index << (PAGE_SHIFT - bmap->b_inode->i_blkbits); (pages only have a ->index field for historical reasons; I'm trying to get rid of it)