Repository navigation
Commit 5b5c5d1
amiflop,ataflop,xd,mg_disk: clean up unnecessary stuff from block drivers
rq_data_dir() can only be READ or WRITE and rq->sector and nr_sectors
are always automatically updated after partial request completion.
Don't worry about rq_data_dir() not being either READ or WRITE or
manually update sector and nr_sectors.
[ Impact: cleanup ]
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Jörg Dorchain <joerg@dorchain.net>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: unsik Kim <donari75@gmail.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>1 parent 4c94dec commit 5b5c5d1
4 files changed
Lines changed: 2 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1371 | 1371 | | |
1372 | 1372 | | |
1373 | 1373 | | |
1374 | | - | |
1375 | | - | |
1376 | | - | |
1377 | | - | |
1378 | | - | |
1379 | 1374 | | |
1380 | 1375 | | |
1381 | 1376 | | |
| |||
1407 | 1402 | | |
1408 | 1403 | | |
1409 | 1404 | | |
1410 | | - | |
1411 | | - | |
1412 | 1405 | | |
1413 | 1406 | | |
1414 | 1407 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
732 | 732 | | |
733 | 733 | | |
734 | 734 | | |
735 | | - | |
736 | | - | |
737 | 735 | | |
738 | 736 | | |
739 | 737 | | |
| |||
1139 | 1137 | | |
1140 | 1138 | | |
1141 | 1139 | | |
1142 | | - | |
1143 | | - | |
1144 | 1140 | | |
1145 | 1141 | | |
1146 | 1142 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
560 | 560 | | |
561 | 561 | | |
562 | 562 | | |
563 | | - | |
564 | | - | |
565 | | - | |
566 | | - | |
567 | | - | |
568 | 563 | | |
569 | 564 | | |
570 | 565 | | |
| |||
614 | 609 | | |
615 | 610 | | |
616 | 611 | | |
617 | | - | |
618 | | - | |
619 | | - | |
620 | | - | |
621 | | - | |
622 | 612 | | |
623 | 613 | | |
624 | 614 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
308 | 308 | | |
309 | 309 | | |
310 | 310 | | |
311 | | - | |
312 | 311 | | |
313 | 312 | | |
314 | 313 | | |
| |||
321 | 320 | | |
322 | 321 | | |
323 | 322 | | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | 323 | | |
330 | | - | |
| 324 | + | |
| 325 | + | |
331 | 326 | | |
332 | 327 | | |
333 | 328 | | |
| |||
0 commit comments