aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--block/blk-core.c2
-rw-r--r--include/linux/blk_types.h2
2 files changed, 0 insertions, 4 deletions
diff --git a/block/blk-core.c b/block/blk-core.c
index f0be754c7781..de474b5dee2b 100644
--- a/block/blk-core.c
+++ b/block/blk-core.c
@@ -1725,8 +1725,6 @@ static void handle_bad_sector(struct bio *bio)
1725 bio->bi_rw, 1725 bio->bi_rw,
1726 (unsigned long long)bio_end_sector(bio), 1726 (unsigned long long)bio_end_sector(bio),
1727 (long long)(i_size_read(bio->bi_bdev->bd_inode) >> 9)); 1727 (long long)(i_size_read(bio->bi_bdev->bd_inode) >> 9));
1728
1729 set_bit(BIO_EOF, &bio->bi_flags);
1730} 1728}
1731 1729
1732#ifdef CONFIG_FAIL_MAKE_REQUEST 1730#ifdef CONFIG_FAIL_MAKE_REQUEST
diff --git a/include/linux/blk_types.h b/include/linux/blk_types.h
index daf95915d104..09c7a2cd48ef 100644
--- a/include/linux/blk_types.h
+++ b/include/linux/blk_types.h
@@ -112,8 +112,6 @@ struct bio {
112 * bio flags 112 * bio flags
113 */ 113 */
114#define BIO_UPTODATE 0 /* ok after I/O completion */ 114#define BIO_UPTODATE 0 /* ok after I/O completion */
115#define BIO_RW_BLOCK 1 /* RW_AHEAD set, and read/write would block */
116#define BIO_EOF 2 /* out-out-bounds error */
117#define BIO_SEG_VALID 3 /* bi_phys_segments valid */ 115#define BIO_SEG_VALID 3 /* bi_phys_segments valid */
118#define BIO_CLONED 4 /* doesn't own data */ 116#define BIO_CLONED 4 /* doesn't own data */
119#define BIO_BOUNCED 5 /* bio is a bounce bio */ 117#define BIO_BOUNCED 5 /* bio is a bounce bio */