Commit 1e2ab2e
nbd: use the default discard granularity
The discard granularity now defaults to a single sector, so don't set
that value explicitly. Also don't bother clearing it as a discard
granularity without discard_sectors doesn't mean anything.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20231228075545.362768-6-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent 599d9d4 commit 1e2ab2e
1 file changed
Lines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
337 | | - | |
338 | | - | |
| 337 | + | |
339 | 338 | | |
340 | | - | |
341 | 339 | | |
342 | 340 | | |
343 | 341 | | |
| |||
1357 | 1355 | | |
1358 | 1356 | | |
1359 | 1357 | | |
1360 | | - | |
1361 | 1358 | | |
1362 | 1359 | | |
1363 | 1360 | | |
| |||
1850 | 1847 | | |
1851 | 1848 | | |
1852 | 1849 | | |
1853 | | - | |
1854 | 1850 | | |
1855 | 1851 | | |
1856 | 1852 | | |
| |||
0 commit comments