Commit 8ea8566
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>1 parent 211ff16 commit 8ea8566
1 file changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5287 | 5287 | | |
5288 | 5288 | | |
5289 | 5289 | | |
5290 | | - | |
| 5290 | + | |
5291 | 5291 | | |
5292 | 5292 | | |
5293 | 5293 | | |
| |||
5296 | 5296 | | |
5297 | 5297 | | |
5298 | 5298 | | |
5299 | | - | |
5300 | 5299 | | |
5301 | 5300 | | |
5302 | 5301 | | |
| |||
5308 | 5307 | | |
5309 | 5308 | | |
5310 | 5309 | | |
5311 | | - | |
| 5310 | + | |
5312 | 5311 | | |
5313 | 5312 | | |
5314 | 5313 | | |
| |||
0 commit comments