[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20260109055308.GC4949@lst.de>
Date: Fri, 9 Jan 2026 06:53:08 +0100
From: Christoph Hellwig <hch@....de>
To: Caleb Sander Mateos <csander@...estorage.com>
Cc: Jens Axboe <axboe@...nel.dk>, linux-block@...r.kernel.org,
linux-kernel@...r.kernel.org, Anuj Gupta <anuj20.g@...sung.com>,
Christoph Hellwig <hch@....de>
Subject: Re: [PATCH v2 3/3] block: use pi_tuple_size in bi_offload_capable()
On Thu, Jan 08, 2026 at 10:22:12AM -0700, Caleb Sander Mateos wrote:
> bi_offload_capable() returns whether a block device's metadata size
> matches its PI tuple size. Use pi_tuple_size instead of switching on
> csum_type. This makes the code considerably simpler and less branchy.
>
> Signed-off-by: Caleb Sander Mateos <csander@...estorage.com>
Looks good:
Reviewed-by: Christoph Hellwig <hch@....de>
Powered by blists - more mailing lists