]> git.hungrycats.org Git - linux/commitdiff
Revert "btrfs: don't report readahead errors and don't update statistics" because...
authorZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Mon, 20 Sep 2021 16:26:38 +0000 (12:26 -0400)
committerZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Mon, 20 Sep 2021 16:35:26 +0000 (12:35 -0400)
This reverts commit 0cc068e6ee59c1fffbfa977d8bf868b7551d80ac.

(cherry picked from commit edca545b3e61a4b4f88d6676317c0d5bd30e785f)

fs/btrfs/volumes.c

index b98a8498882fb466f7c28a8de0e944f37dac8bd6..cc5f83f02667af4443175b968bff9a6c6b1e3e9f 100644 (file)
@@ -7094,9 +7094,9 @@ static void btrfs_end_bio(struct bio *bio)
                        if (btrfs_op(bio) == BTRFS_MAP_WRITE)
                                btrfs_dev_stat_inc_and_print(dev,
                                                BTRFS_DEV_STAT_WRITE_ERRS);
-                       else if (!(bio->bi_opf & REQ_RAHEAD))
+                       else
                                btrfs_dev_stat_inc_and_print(dev,
-                                               BTRFS_DEV_STAT_READ_ERRS);
+                                       BTRFS_DEV_STAT_READ_ERRS);
                        if (bio->bi_opf & REQ_PREFLUSH)
                                btrfs_dev_stat_inc_and_print(dev,
                                                BTRFS_DEV_STAT_FLUSH_ERRS);