Commit 2828908
drbd: refactor the backing dev max_segments calculation
Factor out a drbd_backing_dev_max_segments helper that checks the
backing device limitation.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Philipp Reisner <philipp.reisner@linbit.com>
Reviewed-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Tested-by: Christoph Böhmwalder <christoph.boehmwalder@linbit.com>
Link: https://lore.kernel.org/r/20240306140332.623759-4-philipp.reisner@linbit.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent 342d81f commit 2828908
1 file changed
Lines changed: 17 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1295 | 1295 | | |
1296 | 1296 | | |
1297 | 1297 | | |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
| 1305 | + | |
| 1306 | + | |
| 1307 | + | |
| 1308 | + | |
| 1309 | + | |
| 1310 | + | |
| 1311 | + | |
1298 | 1312 | | |
1299 | 1313 | | |
1300 | 1314 | | |
1301 | 1315 | | |
1302 | 1316 | | |
1303 | | - | |
| 1317 | + | |
1304 | 1318 | | |
1305 | | - | |
1306 | 1319 | | |
1307 | 1320 | | |
1308 | 1321 | | |
1309 | 1322 | | |
1310 | 1323 | | |
1311 | | - | |
1312 | | - | |
1313 | | - | |
1314 | | - | |
| 1324 | + | |
1315 | 1325 | | |
1316 | 1326 | | |
1317 | 1327 | | |
1318 | 1328 | | |
1319 | 1329 | | |
1320 | | - | |
1321 | | - | |
| 1330 | + | |
1322 | 1331 | | |
1323 | 1332 | | |
1324 | 1333 | | |
| |||
0 commit comments