mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Matthew Wilcox <willy@infradead.org>
To: Kemeng Shi <shikemeng@huaweicloud.com>
Cc: akpm@linux-foundation.org, linux-kernel@vger.kernel.org,
	linux-fsdevel@vger.kernel.org
Subject: Re: [PATCH 4/6] Xarray: skip unneeded xas_store() and xas_clear_mark() in __xa_alloc()
Date: Mon, 4 Nov 2024 13:34:50 +0000	[thread overview]
Message-ID: <ZyjNeq1GJTFFa3-7@casper.infradead.org> (raw)
In-Reply-To: <ad978b0c-b814-02ad-6304-6096d5cacf9a@huaweicloud.com>

On Mon, Nov 04, 2024 at 09:55:42AM +0800, Kemeng Shi wrote:
> > No.  The point of the xas interfaces is that they turn into no-ops once
> > an error has occurred.
> Yes, xas interfaces can tolerate error. The question is do we really need to
> call xas_store(...) here if we already know there is no room to store new entry.
> But no insistant on this as it's not a big deal anyway.
> 
> Will drop this on next version if you still disklike this.

I very much dislike this.  The point is to make the callers simpler.


  reply	other threads:[~2024-11-04 13:34 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-01 15:50 [PATCH 0/6] Fixes and cleanups to xarray Kemeng Shi
2024-11-01 15:50 ` [PATCH 1/6] Xarray: Do not return sibling entries from xas_find_marked() Kemeng Shi
2024-11-01 15:50 ` [PATCH 2/6] Xarray: distinguish large entries correctly in xas_split_alloc() Kemeng Shi
2024-11-01 15:50 ` [PATCH 3/6] Xarray: move forward index correctly in xas_pause() Kemeng Shi
2024-11-01 15:50 ` [PATCH 4/6] Xarray: skip unneeded xas_store() and xas_clear_mark() in __xa_alloc() Kemeng Shi
2024-11-01 16:02   ` Matthew Wilcox
2024-11-04  1:55     ` Kemeng Shi
2024-11-04 13:34       ` Matthew Wilcox [this message]
2024-11-01 15:50 ` [PATCH 5/6] Xarray: remove repeat check in xas_squash_marks() Kemeng Shi
2024-11-01 15:50 ` [PATCH 6/6] Xarray: use xa_mark_t in xas_squash_marks() to keep code consistent Kemeng Shi

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=ZyjNeq1GJTFFa3-7@casper.infradead.org \
    --to=willy@infradead.org \
    --cc=akpm@linux-foundation.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=shikemeng@huaweicloud.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®