Commit a4be967
nvme: also skip discard granularity updates in nvme_config_discard
Don't just skip the discard sectors and segments but also the granularity
if a value was already set before.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Max Gurtovoy <mgurtovoy@nvidia.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>1 parent d3074e9 commit a4be967
1 file changed
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1727 | 1727 | | |
1728 | 1728 | | |
1729 | 1729 | | |
1730 | | - | |
1731 | 1730 | | |
1732 | 1731 | | |
1733 | 1732 | | |
| |||
1741 | 1740 | | |
1742 | 1741 | | |
1743 | 1742 | | |
1744 | | - | |
1745 | | - | |
1746 | 1743 | | |
1747 | 1744 | | |
1748 | 1745 | | |
| |||
1755 | 1752 | | |
1756 | 1753 | | |
1757 | 1754 | | |
| 1755 | + | |
1758 | 1756 | | |
1759 | 1757 | | |
1760 | 1758 | | |
| |||
0 commit comments