All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@lst.de>
To: Joseph Qi <joseph.qi@linux.alibaba.com>
Cc: hch@lst.de, Heming Zhao <heming.zhao@suse.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	Mark Fasheh <mark@fasheh.com>, Joel Becker <jlbec@evilplan.org>,
	ocfs2-devel@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: Re: [RFC PATCH v15 03/10] ocfs2: add ocfs2_get_clusters_uncached()
Date: Wed, 2 Dec 2026 17:16:13 +0100	[thread overview]
Message-ID: <20261202161613.GA4462@lst.de> (raw)
In-Reply-To: <20261202143507.1754776-4-joseph.qi@linux.alibaba.com>

On Wed, Dec 02, 2026 at 10:35:00PM +0800, Joseph Qi wrote:
> From: Heming Zhao <heming.zhao@suse.com>
> 
> 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 <hch@lst.de>


  reply	other threads:[~2026-12-02 16:16 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-02 14:34 [RFC PATCH v15 00/10] migrate ocfs2 DIO from buffer_head to iomap Joseph Qi
2026-12-02 14:34 ` [RFC PATCH v15 01/10] ocfs2: Add new ocfs2_map_blocks() to introduce iomap feature Joseph Qi
2026-12-02 14:34 ` [RFC PATCH v15 02/10] ocfs2: switch DIO read path from buffer_head to iomap Joseph Qi
2026-12-02 14:35 ` [RFC PATCH v15 03/10] ocfs2: add ocfs2_get_clusters_uncached() Joseph Qi
2026-12-02 16:16   ` Christoph Hellwig [this message]
2026-12-02 14:35 ` [RFC PATCH v15 04/10] ocfs2: refactor ocfs2_lock_allocators() and add a dio variant Joseph Qi
2026-12-02 14:35 ` [RFC PATCH v15 05/10] ocfs2: record the fsync transaction when CoW makes clusters writable Joseph Qi
2026-12-02 14:35 ` [RFC PATCH v15 06/10] ocfs2: rework the direct write context for multi-cluster mappings Joseph Qi
2026-12-02 14:35 ` [RFC PATCH v15 07/10] ocfs2: switch dio write path from buffer_head to iomap Joseph Qi
2026-12-02 14:35 ` [RFC PATCH v15 08/10] ocfs2: keep sub-page overwrites of written blocks on direct I/O Joseph Qi
2026-12-02 14:35 ` [RFC PATCH v15 09/10] ocfs2: write the dio zeroed head/tail buffers out before completion Joseph Qi
2026-12-02 14:35 ` [RFC PATCH v15 10/10] ocfs2: make buffered writes wait for in-flight direct writes Joseph Qi
2026-12-02 16:17 ` [RFC PATCH v15 00/10] migrate ocfs2 DIO from buffer_head to iomap Christoph Hellwig

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261202161613.GA4462@lst.de \
    --to=hch@lst.de \
    --cc=akpm@linux-foundation.org \
    --cc=heming.zhao@suse.com \
    --cc=jlbec@evilplan.org \
    --cc=joseph.qi@linux.alibaba.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mark@fasheh.com \
    --cc=ocfs2-devel@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.