Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9FEC3CD4F54 for ; Tue, 19 May 2026 22:51:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kernelnewbies.org; s=mail; h=Content-Transfer-Encoding:Content-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Cc: In-Reply-To:MIME-Version:References:Message-ID:Subject:To:From:Date:Sender: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=BnUKxo94uAHTd5MFx/XvQTqHhRlixN+BS6oWSgPjJk0=; b=JzqXlgImwTD3YgFFKyNxAamOgZ Vh8WAzdNhda/86QLQYTpUp3V7Fl+XNLUfDrpOTGEltT1/yf6VGsJ5Nhz+zKswlf34oKVa4mjKq/5z BIvQStYklVULsg5RIfjR4QLoD7i9kev8i8fksMHbDrOlCa2THrS4VbfsjhCgNHgnDD1VyIEEK+1kP l2hYQq03VjsvAhvJ4Gwx0aWq0D446nNPML7V9hyb4gJuDTMEUTIRr0jSI19Odmx+yKCl3shDoes/d CTn7WXlg8pzgu7k5Hb1m9NnOyR3Zp1NCV+Waxerqa/TpkjZhXgrgp2f4zCfJ8yrw9Podd8fYnjcEs AVn0jXXg==; Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.97.1) (envelope-from ) id 1wPTHa-0000000069f-0zy4; Tue, 19 May 2026 18:51:26 -0400 Received: from nyc3000-r.dnsiaas.com ([96.47.167.18]) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.97.1) (envelope-from ) id 1wPTHY-0000000069Z-2exD for kernelnewbies@kernelnewbies.org; Tue, 19 May 2026 18:51:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=agatha.dev; s=default; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=uAs7CQyLRzzbX+IeAR9QKsYLtMvw6ZfvzK+KaVD+3wk=; b=MzN+3/qe4KK6SBwk0kIYfS6mhw hHJ1XmdO4lStKTakGLzPj29jXZHyb0E75aiKrTX3R75p60pfULxOexuNMl3QjSvI0GRl1BpulWRbL Y3VRT/6MVefQOcMkkhRhlaZC4y304H90aPl4XH0VSl1UHP4+oDUZt+CIoOqf9eKSgBamMXSHJk6Hc RFxKgyxOsjiABoCWomIZBWRNgVQ9hE2VEc6CCueL0uD+HkAwjBSJK5qcZL9ZMty5f7mFI322lAbwY donya81HUYAYZFq8uUj99iSBI5tFoUghCwTTBvhV0RCCXgchJxyOqbik8AM1ZvTANyxkv2kI7HJ27 EWUchCjA==; Received: from [170.254.153.141] (port=16854 helo=guidai) by nyc3000-r.dnsiaas.com with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.99.2) (envelope-from ) id 1wPTHY-00000004GfC-0Kq6; Tue, 19 May 2026 18:51:22 -0400 Date: Tue, 19 May 2026 19:51:18 -0300 From: Agatha Isabelle Moreira To: shuo chen <1289151713@qq.com> Subject: Re: why don't unlock_buffer call directly clear_and_wake_up_bit? Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - nyc3000-r.dnsiaas.com X-AntiAbuse: Original Domain - kernelnewbies.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - agatha.dev X-Get-Message-Sender-Via: nyc3000-r.dnsiaas.com: authenticated_id: me@agatha.dev X-Authenticated-Sender: nyc3000-r.dnsiaas.com: me@agatha.dev X-Source: X-Source-Args: X-Source-Dir: Cc: kernelnewbies@kernelnewbies.org X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kernelnewbies-bounces@kernelnewbies.org 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