]> 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:33:50 +0000 (12:33 -0400)
This reverts commit 0cc068e6ee59c1fffbfa977d8bf868b7551d80ac.

(cherry picked from commit edca545b3e61a4b4f88d6676317c0d5bd30e785f)

fs/btrfs/volumes.c

index bc5113ffa5459aa1c46a84fca06ec66fcb052de1..eedf6754571707f13698ef47f075a3c7f92a828a 100644 (file)
@@ -6411,9 +6411,9 @@ static void btrfs_end_bio(struct bio *bio)
                        if (bio_op(bio) == REQ_OP_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);