]> git.hungrycats.org Git - linux/commitdiff
Revert "btrfs: don't fail to write to raid56 when dependent data blocks are uncorrect...
authorZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Thu, 29 Aug 2024 19:43:59 +0000 (15:43 -0400)
committerZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Fri, 18 Sep 2026 21:36:34 +0000 (17:36 -0400)
This reverts commit 986eb1a3918b669a2d63071051663995bdda245b.

fs/btrfs/raid56.c

index 93203fc51140ccdc88290abaa35cbec016b857ca..297bc18b981ffef033102379711def8d57241034 100644 (file)
@@ -3084,13 +3084,7 @@ static int rmw_read_wait_recover(struct btrfs_raid_bio *rbio)
         * and csum mismatch), just let recover_sectors() to handle them all.
         */
        submit_read_wait_bio_list(rbio, &bio_list);
-       recover_sectors(rbio);
-       /*
-        * Whether we recover corrupted sectors or not, we must proceed
-        * with the rmw operation, or we will drop the extent we are
-        * trying to write.
-        */
-       return 0;
+       return recover_sectors(rbio);
 }
 
 static void raid_wait_write_end_io(struct bio *bio)