From: Agatha Isabelle Moreira <code@agatha.dev>
To: shuo chen <1289151713@qq.com>
Cc: kernelnewbies@kernelnewbies.org
Subject: Re: why don't unlock_buffer call directly clear_and_wake_up_bit?
Date: Tue, 19 May 2026 19:51:18 -0300 [thread overview]
Message-ID: <agzoqV835-co4kAN@guidai> (raw)
In-Reply-To: <agzkjEU3pI6jt_ds@guidai>
On Tue, May 19, 2026 at 07:42:39PM -0300, Agatha Isabelle Moreira wrote:
> Judging from the commit message at `8236b0ae31c83` I would make the
> educated guess that they are semantically identical, but I don't have
> enough knowledge to make such a claim firmly.
>
> Maybe the semantics is the same, order doesn't matter and everyone just
> missed it. But maybe nobody changed because order changes semantics, I
> don't know.
Ohhh, I looked at the source right after sending.
The semantics is definetely the same because that's what
`clear_and_wake_up_bit()` does, literally. So yeah, the reason is 100%
sure: the function didn't exist when `unlock_buffer()` was written.
---
Sincerely,
Agatha Isabelle Moreira
C Developer | agatha.dev
Sourcehut: https://sr.ht/~devlavender/
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
prev parent reply other threads:[~2026-05-19 22:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-21 7:54 why don't unlock_buffer call directly clear_and_wake_up_bit? shuo chen
2026-05-19 22:42 ` Agatha Isabelle Moreira
2026-05-19 22:51 ` Agatha Isabelle Moreira [this message]
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=agzoqV835-co4kAN@guidai \
--to=code@agatha.dev \
--cc=1289151713@qq.com \
--cc=kernelnewbies@kernelnewbies.org \
/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;
as well as URLs for NNTP newsgroup(s).