aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent_io.c
diff options
context:
space:
mode:
authorKent Overstreet <koverstreet@google.com>2012-09-11 16:23:05 -0400
committerChris Mason <chris.mason@fusionio.com>2012-10-01 15:19:21 -0400
commitbe3940c0a90265654d778394cafe2e2cec674df8 (patch)
treea2d662e47bf1b8291f5285a3a5194a7ef1294cdf /fs/btrfs/extent_io.c
parent962197babeccc1f4cc8aa28ad844df80bdc85ed0 (diff)
btrfs: Kill some bi_idx references
For immutable bio vecs, I've been auditing and removing bi_idx references. These were harmless, but removing them will make auditing easier. scrub_bio_end_io_worker() was open coding a bio_reset() - but this doesn't appear to have been needed for anything as right after it does a bio_put(), and perusing the code it doesn't appear anything else was holding a reference to the bio. The other use end_bio_extent_readpage() was just for a pr_debug() - changed it to something that might be a bit more useful. Signed-off-by: Kent Overstreet <koverstreet@google.com> CC: Chris Mason <chris.mason@oracle.com> CC: Stefan Behrens <sbehrens@giantdisaster.de>
Diffstat (limited to 'fs/btrfs/extent_io.c')
-rw-r--r--fs/btrfs/extent_io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c
index 3ad84f500687..90bd9f768c0a 100644
--- a/fs/btrfs/extent_io.c
+++ b/fs/btrfs/extent_io.c
@@ -2306,8 +2306,8 @@ static void end_bio_extent_readpage(struct bio *bio, int err)
2306 struct extent_state *cached = NULL; 2306 struct extent_state *cached = NULL;
2307 struct extent_state *state; 2307 struct extent_state *state;
2308 2308
2309 pr_debug("end_bio_extent_readpage: bi_vcnt=%d, idx=%d, err=%d, " 2309 pr_debug("end_bio_extent_readpage: bi_sector=%llu, err=%d, "
2310 "mirror=%ld\n", bio->bi_vcnt, bio->bi_idx, err, 2310 "mirror=%ld\n", (u64)bio->bi_sector, err,
2311 (long int)bio->bi_bdev); 2311 (long int)bio->bi_bdev);
2312 tree = &BTRFS_I(page->mapping->host)->io_tree; 2312 tree = &BTRFS_I(page->mapping->host)->io_tree;
2313 2313