block: remove unused BIO_RW_BLOCK and BIO_EOF flags
authorChristoph Hellwig <hch@lst.de>
Fri, 24 Apr 2015 19:41:02 +0000 (21:41 +0200)
committerJens Axboe <axboe@fb.com>
Tue, 19 May 2015 15:17:05 +0000 (09:17 -0600)
Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-core.c
include/linux/blk_types.h

index f0be754c7781e9b45fc7208177eeb5b8bd94de16..de474b5dee2b94ff1a4d1f5b6a8c650a61c0ac4b 100644 (file)
@@ -1725,8 +1725,6 @@ static void handle_bad_sector(struct bio *bio)
                        bio->bi_rw,
                        (unsigned long long)bio_end_sector(bio),
                        (long long)(i_size_read(bio->bi_bdev->bd_inode) >> 9));
-
-       set_bit(BIO_EOF, &bio->bi_flags);
 }
 
 #ifdef CONFIG_FAIL_MAKE_REQUEST
index daf95915d104b18d8c5827e07b51c64252becb4c..09c7a2cd48ef0455f54d095ac1f544a43d85c671 100644 (file)
@@ -112,8 +112,6 @@ struct bio {
  * bio flags
  */
 #define BIO_UPTODATE   0       /* ok after I/O completion */
-#define BIO_RW_BLOCK   1       /* RW_AHEAD set, and read/write would block */
-#define BIO_EOF                2       /* out-out-bounds error */
 #define BIO_SEG_VALID  3       /* bi_phys_segments valid */
 #define BIO_CLONED     4       /* doesn't own data */
 #define BIO_BOUNCED    5       /* bio is a bounce bio */