diff options
author | Christoph Hellwig <hch@lst.de> | 2015-04-24 15:41:01 -0400 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2015-05-19 11:17:03 -0400 |
commit | b25de9d6da49b1a8760a89672283128aa8c78345 (patch) | |
tree | 446d9186aebfbdb2156e438b6c85d84d44dd51a2 /fs/btrfs/extent_io.c | |
parent | 4ecd4fef3a074c8bb43c391a57742c422469ebbd (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/btrfs/extent_io.c')
-rw-r--r-- | fs/btrfs/extent_io.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index 43af5a61ad25..1e155299abc0 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c | |||
@@ -2767,8 +2767,6 @@ static int __must_check submit_one_bio(int rw, struct bio *bio, | |||
2767 | else | 2767 | else |
2768 | btrfsic_submit_bio(rw, bio); | 2768 | btrfsic_submit_bio(rw, bio); |
2769 | 2769 | ||
2770 | if (bio_flagged(bio, BIO_EOPNOTSUPP)) | ||
2771 | ret = -EOPNOTSUPP; | ||
2772 | bio_put(bio); | 2770 | bio_put(bio); |
2773 | return ret; | 2771 | return ret; |
2774 | } | 2772 | } |