summaryrefslogtreecommitdiff
path: root/include/linux/kthread.h
diff options
context:
space:
mode:
authorCaleb Sander Mateos <csander@purestorage.com>2026-01-08 10:22:12 -0700
committerJens Axboe <axboe@kernel.dk>2026-01-10 10:22:54 -0700
commita31bde687b10b1a3db9c61eba5abb662dda15277 (patch)
tree0fafca5d33a9066ace9fdf6518bb779f4dac93a3 /include/linux/kthread.h
parent15f506a77ad61ac3273ade9b7ef87af9bdba22ad (diff)
block: use pi_tuple_size in bi_offload_capable()
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@purestorage.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Anuj Gupta <anuj20.g@samsung.com> Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/kthread.h')
0 files changed, 0 insertions, 0 deletions