]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ublk: simplify PFN range loop in __ublk_ctrl_reg_buf
authorMing Lei <tom.leiming@gmail.com>
Thu, 9 Apr 2026 13:30:15 +0000 (21:30 +0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 10 Apr 2026 01:08:35 +0000 (19:08 -0600)
commit8ea8566a9aeef746699d8c84bed3ac44edbfaa0e
treebdbdc65abdc23b85d5c1c1fdb7b9e241a92299b2
parent211ff1602b67e26125977f8b2f369d7c2847628c
ublk: simplify PFN range loop in __ublk_ctrl_reg_buf

Use the for-loop increment instead of a manual `i++` past the last
page, and fix the mtree_insert_range end key accordingly.

Suggested-by: Caleb Sander Mateos <csander@purestorage.com>
Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Link: https://patch.msgid.link/20260409133020.3780098-4-tom.leiming@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/ublk_drv.c