aboutsummaryrefslogtreecommitdiffstats
path: root/fs/buffer.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2015-04-24 15:41:01 -0400
committerJens Axboe <axboe@fb.com>2015-05-19 11:17:03 -0400
commitb25de9d6da49b1a8760a89672283128aa8c78345 (patch)
tree446d9186aebfbdb2156e438b6c85d84d44dd51a2 /fs/buffer.c
parent4ecd4fef3a074c8bb43c391a57742c422469ebbd (diff)
block: remove BIO_EOPNOTSUPP
Since the big barrier rewrite/removal in 2007 we never fail FLUSH or FUA requests, which means we can remove the magic BIO_EOPNOTSUPP flag to help propagating those to the buffer_head layer. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Jeff Moyer <jmoyer@redhat.com> Acked-by: Tejun Heo <tj@kernel.org> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'fs/buffer.c')
-rw-r--r--fs/buffer.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/fs/buffer.c b/fs/buffer.c
index c7a5602d01ee..efd85e0e8660 100644
--- a/fs/buffer.c
+++ b/fs/buffer.c
@@ -2938,10 +2938,6 @@ static void end_bio_bh_io_sync(struct bio *bio, int err)
2938{ 2938{
2939 struct buffer_head *bh = bio->bi_private; 2939 struct buffer_head *bh = bio->bi_private;
2940 2940
2941 if (err == -EOPNOTSUPP) {
2942 set_bit(BIO_EOPNOTSUPP, &bio->bi_flags);
2943 }
2944
2945 if (unlikely (test_bit(BIO_QUIET,&bio->bi_flags))) 2941 if (unlikely (test_bit(BIO_QUIET,&bio->bi_flags)))
2946 set_bit(BH_Quiet, &bh->b_state); 2942 set_bit(BH_Quiet, &bh->b_state);
2947 2943
@@ -3041,13 +3037,7 @@ int _submit_bh(int rw, struct buffer_head *bh, unsigned long bio_flags)
3041 if (buffer_prio(bh)) 3037 if (buffer_prio(bh))
3042 rw |= REQ_PRIO; 3038 rw |= REQ_PRIO;
3043 3039
3044 bio_get(bio);
3045 submit_bio(rw, bio); 3040 submit_bio(rw, bio);
3046
3047 if (bio_flagged(bio, BIO_EOPNOTSUPP))
3048 ret = -EOPNOTSUPP;
3049
3050 bio_put(bio);
3051 return ret; 3041 return ret;
3052} 3042}
3053EXPORT_SYMBOL_GPL(_submit_bh); 3043EXPORT_SYMBOL_GPL(_submit_bh);