Commit 4c74d1f
nvme: add nvme_get_ns helper
Add a helper to avoid opencoding ns->kref increment.
Decrement is already done via nvme_put_ns helper.
Signed-off-by: Kanchan Joshi <joshi.k@samsung.com>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>1 parent 48145b6 commit 4c74d1f
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
576 | 576 | | |
577 | 577 | | |
578 | 578 | | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
579 | 584 | | |
580 | 585 | | |
581 | 586 | | |
| |||
1494 | 1499 | | |
1495 | 1500 | | |
1496 | 1501 | | |
1497 | | - | |
| 1502 | + | |
1498 | 1503 | | |
1499 | 1504 | | |
1500 | 1505 | | |
| |||
3582 | 3587 | | |
3583 | 3588 | | |
3584 | 3589 | | |
3585 | | - | |
| 3590 | + | |
3586 | 3591 | | |
3587 | 3592 | | |
3588 | 3593 | | |
| |||
0 commit comments