[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ab663865-9099-8f6b-de1e-30c1356d5078@acm.org>
Date: Wed, 3 May 2023 11:49:56 -0700
From: Bart Van Assche <bvanassche@....org>
To: John Garry <john.g.garry@...cle.com>, axboe@...nel.dk,
kbusch@...nel.org, hch@....de, sagi@...mberg.me,
martin.petersen@...cle.com, djwong@...nel.org,
viro@...iv.linux.org.uk, brauner@...nel.org, dchinner@...hat.com,
jejb@...ux.ibm.com
Cc: linux-block@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-nvme@...ts.infradead.org, linux-scsi@...r.kernel.org,
linux-xfs@...r.kernel.org, linux-fsdevel@...r.kernel.org,
linux-security-module@...r.kernel.org, paul@...l-moore.com,
jmorris@...ei.org, serge@...lyn.com,
Alan Adamson <alan.adamson@...cle.com>
Subject: Re: [PATCH RFC 16/16] nvme: Support atomic writes
On 5/3/23 11:38, John Garry wrote:
> + if (!(boundary & (boundary - 1))) {
Please use is_power_of_2() instead of open-coding it.
Thanks,
Bart.
Powered by blists - more mailing lists