linux/kernel: introduce lower_48_bits function
authorKeith Busch <kbusch@kernel.org>
Thu, 3 Mar 2022 20:13:08 +0000 (12:13 -0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 7 Mar 2022 19:48:35 +0000 (12:48 -0700)
commit7ee8809df990d1de379002973baee1681e8d7dd3
tree2e1e065fd9386255e0987af616ed4c296a366ca3
parentc2ea5fcf53d5f21e6aff0de11d55bc202822df6a
linux/kernel: introduce lower_48_bits function

Recent data integrity field enhancements allow reference tags to be up
to 48 bits. Introduce an inline helper function since this will be a
repeated operation.

Suggested-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20220303201312.3255347-5-kbusch@kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/kernel.h