Commit d412df5
ext4: minor defrag code improvements
Modify the error returns for two file types that can't be defragged to
more clearly communicate those restrictions to a caller. When the
defrag code is applied to swap files, return -ETXTBSY, and when applied
to quota files, return -EOPNOTSUPP. Move an extent tree search whose
results are only occasionally required to the site always requiring them
for improved efficiency. Address a few typos.
Signed-off-by: Eric Whitney <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Theodore Ts'o <[email protected]>1 parent df3cb75 commit d412df5
1 file changed
+7
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
472 | 472 | | |
473 | 473 | | |
474 | 474 | | |
475 | | - | |
| 475 | + | |
476 | 476 | | |
477 | | - | |
478 | | - | |
| 477 | + | |
479 | 478 | | |
480 | | - | |
| 479 | + | |
481 | 480 | | |
482 | 481 | | |
483 | 482 | | |
484 | | - | |
485 | | - | |
| 483 | + | |
486 | 484 | | |
487 | | - | |
| 485 | + | |
488 | 486 | | |
489 | 487 | | |
490 | 488 | | |
| |||
631 | 629 | | |
632 | 630 | | |
633 | 631 | | |
634 | | - | |
635 | 632 | | |
636 | 633 | | |
637 | 634 | | |
638 | 635 | | |
| 636 | + | |
639 | 637 | | |
640 | 638 | | |
641 | 639 | | |
| |||
663 | 661 | | |
664 | 662 | | |
665 | 663 | | |
666 | | - | |
| 664 | + | |
667 | 665 | | |
668 | 666 | | |
669 | 667 | | |
| |||
0 commit comments