Commit 38d12f1
nvmet: ignore discard return value
__blkdev_issue_discard() always returns 0, making the error checking
in nvmet_bdev_discard_range() dead code.
Kill the function nvmet_bdev_discard_range() and call
__blkdev_issue_discard() directly from nvmet_bdev_execute_discard(),
since no error handling is needed anymore for __blkdev_issue_discard()
call.
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent 699fcfb commit 38d12f1
1 file changed
Lines changed: 7 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
363 | 363 | | |
364 | 364 | | |
365 | 365 | | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | 366 | | |
384 | 367 | | |
| 368 | + | |
385 | 369 | | |
386 | 370 | | |
| 371 | + | |
387 | 372 | | |
388 | | - | |
| 373 | + | |
389 | 374 | | |
390 | 375 | | |
391 | 376 | | |
392 | 377 | | |
393 | 378 | | |
394 | 379 | | |
395 | 380 | | |
396 | | - | |
397 | | - | |
398 | | - | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
399 | 385 | | |
400 | 386 | | |
401 | 387 | | |
| |||
0 commit comments