--- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c @@ -3770,6 +3770,12 @@ static void set_btree_ioerr(struct page return; /* + * A read may stumble upon this buffer later, make sure that it gets an + * error and knows there was an error. + */ + clear_bit(EXTENT_BUFFER_UPTODATE, &eb->bflags); + + /* * If we error out, we should add back the dirty_metadata_bytes * to make it consistent. */