Commit 3a23d05
badblocks: try can_merge_front before overlap_front
Regardless of whether overlap_front() returns true or false,
can_merge_front() will be executed first. Therefore, move
can_merge_front() in front of can_merge_front() to simplify code.
Signed-off-by: Li Nan <[email protected]>
Reviewed-by: Yu Kuai <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>1 parent 3744668 commit 3a23d05
1 file changed
+22
-26
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
905 | 905 | | |
906 | 906 | | |
907 | 907 | | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
908 | 915 | | |
909 | | - | |
910 | | - | |
911 | | - | |
912 | | - | |
913 | | - | |
| 916 | + | |
914 | 917 | | |
915 | | - | |
916 | | - | |
917 | | - | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
918 | 921 | | |
919 | | - | |
920 | | - | |
921 | | - | |
922 | | - | |
923 | | - | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
924 | 927 | | |
925 | | - | |
926 | | - | |
927 | | - | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
928 | 931 | | |
929 | | - | |
930 | | - | |
931 | | - | |
932 | | - | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
933 | 935 | | |
934 | | - | |
935 | | - | |
936 | | - | |
937 | 936 | | |
938 | | - | |
939 | | - | |
940 | | - | |
941 | 937 | | |
942 | 938 | | |
943 | 939 | | |
| |||
0 commit comments