diff options
author | Chris Mason <chris.mason@oracle.com> | 2008-04-17 14:08:30 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 11:04:02 -0400 |
commit | 41471e8341a6b476bcd8ecc765a8b297c22a74f9 (patch) | |
tree | 7dbca49c1323a94bd0b4656a0346c74beb51025f /fs/btrfs/extent_io.c | |
parent | 7bf3b490dfa57bdef5892dffa5021469a0cd2b7f (diff) |
Btrfs: Remove bogus max_sector warnings from the extent_io code
It was testing the bio before doing logical->physical mapping, so the
test was always wrong.
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/extent_io.c')
-rw-r--r-- | fs/btrfs/extent_io.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index 21597bea21fd..a984a7bc1197 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c | |||
@@ -1702,7 +1702,6 @@ extent_bio_alloc(struct block_device *bdev, u64 first_sector, int nr_vecs, | |||
1702 | 1702 | ||
1703 | static int submit_one_bio(int rw, struct bio *bio, int mirror_num) | 1703 | static int submit_one_bio(int rw, struct bio *bio, int mirror_num) |
1704 | { | 1704 | { |
1705 | u64 maxsector; | ||
1706 | int ret = 0; | 1705 | int ret = 0; |
1707 | struct bio_vec *bvec = bio->bi_io_vec + bio->bi_vcnt - 1; | 1706 | struct bio_vec *bvec = bio->bi_io_vec + bio->bi_vcnt - 1; |
1708 | struct page *page = bvec->bv_page; | 1707 | struct page *page = bvec->bv_page; |
@@ -1730,12 +1729,6 @@ static int submit_one_bio(int rw, struct bio *bio, int mirror_num) | |||
1730 | 1729 | ||
1731 | bio_get(bio); | 1730 | bio_get(bio); |
1732 | 1731 | ||
1733 | maxsector = bio->bi_bdev->bd_inode->i_size >> 9; | ||
1734 | if (maxsector < bio->bi_sector) { | ||
1735 | printk("sector too large max %Lu got %llu\n", maxsector, | ||
1736 | (unsigned long long)bio->bi_sector); | ||
1737 | WARN_ON(1); | ||
1738 | } | ||
1739 | if (tree->ops && tree->ops->submit_bio_hook) | 1732 | if (tree->ops && tree->ops->submit_bio_hook) |
1740 | tree->ops->submit_bio_hook(page->mapping->host, rw, bio, | 1733 | tree->ops->submit_bio_hook(page->mapping->host, rw, bio, |
1741 | mirror_num); | 1734 | mirror_num); |