From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 B34A02DC32C for ; Tue, 11 Aug 2026 11:00:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786446045; cv=none; b=r3DLH1X95dgxI6Xj0hAOSEFis5BNLnTI/ri5/L5bHqLPIKzoQXKQIPTOV16xc8YD/syavrb8nGeJylVpbfJTrCciJYNQFR5r4KdP7w2RXiw1aGoO/Xfmww/A0IwoCPMvRI8HNu3LiS8aWg4+FM/vgRjF6Zol/oMqFdy//wbdhMM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786446045; c=relaxed/simple; bh=QUTqJQG3oApG0Fn8+B2RsGVYTXS3sxXTmrCgUKC7FEA=; h=Message-ID:Date:MIME-Version:Cc:Subject:To:References:From: In-Reply-To:Content-Type; b=oguJQZbSOHR6jwWvQIy4D3dgjHZkrE3y5oHta4LJ7G1+Klh1iQcIZHB7de6HWHAvTme9zYQWgE/1aMPD30auX1PiRRuGhSFC7tSk2lsHhovXhjkSLbrhTM827QATWcB3o0OnDHK+Xnx6wtOEqHWOM2uRbw+JazfLg2yAjoEG1ac= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=YqFhBBDM; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="YqFhBBDM" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6ABE11F00A3A; Tue, 11 Aug 2026 11:00:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1786446044; bh=7vWhnoDyViDukKyEBgtPiQ3wF3p2ShiE/R3R680ir5c=; h=Date:Cc:Subject:To:References:From:In-Reply-To; b=YqFhBBDM65COHqJxMDtIFUpvzJnIqMjh92Bf84/C1wn+G8pb0PsHoX/P0o86/87wa 5Mo4YDEGCaZIKtM3ko56MjqujNkXCevm8Qn9+ucUBO+ZLMjl+xbMDEqDJTk8ncj6FR n8xrcBLbK+TJIOqMTTRJZdeiHdXTVWy/W/QvfwrM4Byyk0vMpHgm2EnSDXyD++sz76 WF3GSMKcEDieuh1a2xUZwEXsIIpZBHgmqgFKKUnuqbUq/89vwIoAqVPLMgIsgfNPq+ 8YJGr4Ffijk4DHxCjukFRRHvAL1+TfvzKnCGhZPEQvEb8HMF+4yqhMlj19ffRb4D2S aawArWQTqbJDA== Message-ID: <5b0c0856-21de-4bbb-b211-d493329ba6fb@kernel.org> Date: Tue, 11 Aug 2026 19:00:41 +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 Cc: chao@kernel.org, LKML , Christoph Hellwig Subject: Re: [PATCH v2] erofs: use dedicated meta inodes for file-backed mounts To: Gao Xiang , linux-erofs@lists.ozlabs.org References: <20260811080852.29418-1-xiang@kernel.org> <20260811090717.29787-1-xiang@kernel.org> Content-Language: en-US From: Chao Yu In-Reply-To: <20260811090717.29787-1-xiang@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 8/11/26 17:07, Gao Xiang wrote: > Currently, metadata access for file-backed mounts reuses the page cache > of backing inodes directly. > > Switch to per-sb dedicated pseudo inodes ("managed cache") for metadata > access on file-backed mounts (although I still don't think it is > necessary due to the EROFS immutable model). As the result, metadata > cache won't use the page cache of backing inodes anymore. > > The "managed cache" was originally used to cache physical compressed > data according to the current cache strategy and I/O patterns; since > file-backed mounts also need to access physical data for metadata > access, it's natural to reuse the managed cache for this too, providing > a unique inode for all physical data access. > > Signed-off-by: Gao Xiang Reviewed-by: Chao Yu Thanks,