From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=213.95.11.211 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796228181; b=slsj+OSrk/CzUT8+xzH9Ly6iB1orIQum282CDHrJGVDqdUfUeNcnS2hcWM3S8PE2JebI PTwEdg5WJozNdxKOWTQYC3WF1qBNSMeMcJCsbty/Wx4xYEouuCHTr3uVfP5vSZhRzrNEk /dhVz2A4jit8WbjumLdLpRh4g1cSKtY9XbLP2FKV367m4AH5HgambjQU9ri1/OHPsRaBk 3JFDjv8gWMA3xMyHwGtUfai68MLgggu4P2N4pXA4rR65HXOpU+v5NPmkVUxmMX+oyCf/O gcYmVAX/q/BfdGKKsdKLaKcyIn7K2HHoOeuQbY355VLSAZkQKgbCg28XF0zrGxUaDog== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796228181; h=DMARC-Filter:Received:Date:From:To:Cc:Subject:Message-ID:References: MIME-Version:Content-Type:Content-Disposition:In-Reply-To:User-Agent; bh=Hq0wkBepZn2m+qk8aRlIrE8MvfbBkauYG51fUOc6NSA=; b=ddlGHtrWvhuc40bv0ceksBH+f83rz05+xEA9CuoQbgFbD33WHy3PzsqEw0ey0EKrJBs8 L3H7XtaQUTTG818ofZa8tq13oSmfMKmDefuXkHhRRhGHBdOL+Gq1eCRhMm7Hhf1m9tkDx 3S91qJbfofMguqNsU/TnAtwYXP44urakD0gcdyPWm5bNkutN5ON/v7ATBPps8KDArNyFT rEXRtxEqr3RxjX9tDeo7tzUDJlU0vJgNpXL0Wj+2yy6oKIOmciVntKYLeCsKwT+ILf4XK gHyfeMU5mKWNltxDQgPg+oeYOlbz6VMYOHm4rsxIpoze226aeoKi4gx6rJgJ3546hNQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=lst.de; spf=pass smtp.mailfrom=lst.de; arc=none smtp.remote-ip=213.95.11.211 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1D799606A332 for ; Wed, 2 Dec 2026 16:16:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 1D799606A332 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lst.de Received: by verein.lst.de (Postfix, from userid 2407) id B64E368C4E; Wed, 2 Dec 2026 17:16:13 +0100 (CET) Date: Wed, 2 Dec 2026 17:16:13 +0100 From: Christoph Hellwig To: Joseph Qi Cc: hch@lst.de, Heming Zhao , Andrew Morton , Mark Fasheh , Joel Becker , ocfs2-devel@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH v15 03/10] ocfs2: add ocfs2_get_clusters_uncached() Message-ID: <20261202161613.GA4462@lst.de> References: <20261202143507.1754776-1-joseph.qi@linux.alibaba.com> <20261202143507.1754776-4-joseph.qi@linux.alibaba.com> X-Mailing-List: ocfs2-devel@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261202143507.1754776-4-joseph.qi@linux.alibaba.com> User-Agent: Mutt/1.5.17 (2007-11-01) On Wed, Dec 02, 2026 at 10:35:00PM +0800, Joseph Qi wrote: > From: Heming Zhao > > ocfs2_get_clusters() consults the extent map cache, which merges adjacent > on-disk records into one. A caller that needs to operate on one on-disk > record at a time cannot use it: the returned range may span several > records, and inserting the lookup result back into the cache is not > wanted either. > > Factor the lookup into __ocfs2_get_clusters() with a cache flag and add > ocfs2_get_clusters_uncached(), which reads the extent tree directly and > leaves the cache alone. ocfs2_get_clusters() keeps its current behaviour. A little note why someone might want to bypass the cache might be useful for the uninitiated reader (i.e., me). But otherwise this looks good: Reviewed-by: Christoph Hellwig