Commit 2145f44
xfs: ignore discard return value
__blkdev_issue_discard() always returns 0, making all error checking
in XFS discard functions dead code.
Change xfs_discard_extents() return type to void, remove error variable,
error checking, and error logging for the __blkdev_issue_discard() call
in same function.
Update xfs_trim_perag_extents() and xfs_trim_rtgroup_extents() to
ignore the xfs_discard_extents() return value and error checking
code.
Update xfs_discard_rtdev_extents() to ignore __blkdev_issue_discard()
return value and error checking code.
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Chaitanya Kulkarni <ckulkarnilinux@gmail.com>
Signed-off-by: Carlos Maiolino <cem@kernel.org>1 parent 8f0b4cc commit 2145f44
2 files changed
Lines changed: 6 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
120 | 119 | | |
121 | 120 | | |
122 | 121 | | |
| |||
126 | 125 | | |
127 | 126 | | |
128 | 127 | | |
129 | | - | |
| 128 | + | |
130 | 129 | | |
131 | 130 | | |
132 | 131 | | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | 132 | | |
142 | 133 | | |
143 | 134 | | |
| |||
148 | 139 | | |
149 | 140 | | |
150 | 141 | | |
151 | | - | |
152 | | - | |
153 | 142 | | |
154 | 143 | | |
155 | 144 | | |
| |||
385 | 374 | | |
386 | 375 | | |
387 | 376 | | |
388 | | - | |
389 | | - | |
390 | | - | |
| 377 | + | |
391 | 378 | | |
392 | 379 | | |
393 | 380 | | |
| |||
496 | 483 | | |
497 | 484 | | |
498 | 485 | | |
499 | | - | |
| 486 | + | |
500 | 487 | | |
501 | 488 | | |
502 | 489 | | |
503 | | - | |
504 | | - | |
505 | 490 | | |
506 | 491 | | |
507 | 492 | | |
| |||
741 | 726 | | |
742 | 727 | | |
743 | 728 | | |
744 | | - | |
745 | | - | |
746 | | - | |
| 729 | + | |
747 | 730 | | |
748 | 731 | | |
749 | 732 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
0 commit comments