Received: by 2002:a05:7412:8d11:b0:fa:4934:9f with SMTP id bj17csp576400rdb; Mon, 15 Jan 2024 06:51:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IEEBwjEFkbbaTtjNe+6IcELOAL1TcfeIniw4q0PZlOepbo4lPp36qfSZg8HdD4WrtE/cepA X-Received: by 2002:a05:6870:1610:b0:206:c602:9c2b with SMTP id b16-20020a056870161000b00206c6029c2bmr7247700oae.38.1705330266357; Mon, 15 Jan 2024 06:51:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705330266; cv=none; d=google.com; s=arc-20160816; b=bFWZrX/iejOTMcZZCrSkcr5yooYLVx0U1ejiogHirEmJFRQ2gXAiAVn/DbdJafPQNe tauz0Mt7Q2bokhviNwdzeXPIuU2nrYcWiT2fNLgS1r2Smkj2WEDAg+zX68FGa+yHE4yS hJqFePbOpnKle5SZ6jnRU7FZTLl4NqG7R7jz6iRgrLvhD8O+58z+pZ4LY10E0ci422NP gd182T2kDO1+1iQnutTPtwIMgFsLhDU8jKSBps8eSiJXtRy3FUugdnOKtYzcuZQp+8OP AofieX880pTnYHjElkC+D4bfiyg7Kf+xzpqLT0cs0JXZ+xdKeCzGkMEv9wyDbkJQVbYk 8rhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:date:message-id; bh=ZdotrTf4BjmrCqnoE8tygVO3wdVY+bF/AzRG/graG3I=; fh=LWHUwXdXD0LoE+MhXumRuFcLZD/w5M5shxQHRoR2bhE=; b=gngeKLxCU5Ful9VrDOyA1hdgfTpcegC0uJxkmljS9QjFMtGlYozPVO2ZCom28w+i3f e8Ch7AC1nBsC9KRr6i/UuuE0Fj2le67hrw8a9LP8J+461b3WlmSgu8Dic4YCHwDeBsVo UR9RKJhV/3Vs+zn302Ul+tMV5kkrkMx3Eki6MR8reOtQxfXDrXG4nWkiZtXdcV20T5LX lpkZXNFWNngzTdp8wxJW9Fkk7UMF5SSkXvruWDaeIHK+VaeRLncIgezZh5G3Wq70Sg05 6szX1Fy29MDDgdaHudnfb3gmZ8wkYJeev38US9zp2WPfMNa413KHCqyR3KYXG4It6slP G9ww== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-26118-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-26118-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id y189-20020a6364c6000000b005ab53fee611si8969868pgb.423.2024.01.15.06.51.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 06:51:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-26118-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; spf=pass (google.com: domain of linux-kernel+bounces-26118-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-26118-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com 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 8FD18280D97 for ; Mon, 15 Jan 2024 14:43:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4CBD017BA3; Mon, 15 Jan 2024 14:40:11 +0000 (UTC) Received: from out30-110.freemail.mail.aliyun.com (out30-110.freemail.mail.aliyun.com [115.124.30.110]) (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 0A80017995; Mon, 15 Jan 2024 14:40:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R151e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046049;MF=hsiangkao@linux.alibaba.com;NM=1;PH=DS;RN=11;SR=0;TI=SMTPD_---0W-j1yLV_1705329597; Received: from 30.27.74.27(mailfrom:hsiangkao@linux.alibaba.com fp:SMTPD_---0W-j1yLV_1705329597) by smtp.aliyun-inc.com; Mon, 15 Jan 2024 22:39:59 +0800 Message-ID: <931bcf87-efdf-478f-869b-fcb1260ac1cc@linux.alibaba.com> Date: Mon, 15 Jan 2024 22:39:57 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 3/4] erofs: Don't use certain internal folio_*() functions To: Matthew Wilcox Cc: linux-cachefs@redhat.com, linux-fsdevel@vger.kernel.org, linux-erofs@lists.ozlabs.org, David Howells , Christian Brauner , Jeff Layton , LKML , Chao Yu , Yue Hu , Jeffle Xu References: <20240115083337.1355191-1-hsiangkao@linux.alibaba.com> From: Gao Xiang In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi Matthew, On 2024/1/15 22:06, Matthew Wilcox wrote: > On Mon, Jan 15, 2024 at 04:33:37PM +0800, Gao Xiang wrote: >> From: David Howells >> >> Filesystems should use folio->index and folio->mapping, instead of >> folio_index(folio), folio_mapping() and folio_file_mapping() since >> they know that it's in the pagecache. >> >> Change this automagically with: >> >> perl -p -i -e 's/folio_mapping[(]([^)]*)[)]/\1->mapping/g' fs/erofs/*.c >> perl -p -i -e 's/folio_file_mapping[(]([^)]*)[)]/\1->mapping/g' fs/erofs/*.c >> perl -p -i -e 's/folio_index[(]([^)]*)[)]/\1->index/g' fs/erofs/*.c >> >> Reported-by: Matthew Wilcox >> Signed-off-by: David Howells >> Reviewed-by: Jeff Layton >> Cc: Chao Yu >> Cc: Yue Hu >> Cc: Jeffle Xu >> Cc: linux-erofs@lists.ozlabs.org >> Cc: linux-fsdevel@vger.kernel.org >> Signed-off-by: Gao Xiang >> --- >> Hi folks, >> >> I tend to apply this patch upstream since compressed data fscache >> adaption touches this part too. If there is no objection, I'm >> going to take this patch separately for -next shortly.. > > Could you change the subject? It's not that the functions are > "internal", it's that filesystems don't need to use them because they're > guaranteed to not see swap pages. Maybe just s/internal/unnecessary/ Yes, the subject line was inherited from the original one. Such helpers are useful if the type of a folio is unknown, let me revise it. Thanks, Gao Xiang