diff options
author | Kent Overstreet <koverstreet@google.com> | 2012-09-04 15:23:14 -0700 |
---|---|---|
committer | Kent Overstreet <koverstreet@google.com> | 2013-03-23 14:15:31 -0700 |
commit | 4f2ac93c175c4922bdddbfec6cad94b32cea0070 (patch) | |
tree | ce9df811f8a59c3af8486ee20fdc9d36fe5bfd25 /mm/page_io.c | |
parent | 5b83636ae3c3b4f87d02a5929ad4dee831534db0 (diff) | |
download | linux-stable-4f2ac93c175c4922bdddbfec6cad94b32cea0070.tar.gz linux-stable-4f2ac93c175c4922bdddbfec6cad94b32cea0070.tar.bz2 linux-stable-4f2ac93c175c4922bdddbfec6cad94b32cea0070.zip |
block: Remove bi_idx references
For immutable bvecs, all bi_idx usage needs to be audited - so here
we're removing all the unnecessary uses.
Most of these are places where it was being initialized on a bio that
was just allocated, a few others are conversions to standard macros.
Signed-off-by: Kent Overstreet <koverstreet@google.com>
CC: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'mm/page_io.c')
-rw-r--r-- | mm/page_io.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/mm/page_io.c b/mm/page_io.c index 78eee32ee486..8d3c0c088105 100644 --- a/mm/page_io.c +++ b/mm/page_io.c @@ -35,7 +35,6 @@ static struct bio *get_swap_bio(gfp_t gfp_flags, bio->bi_io_vec[0].bv_len = PAGE_SIZE; bio->bi_io_vec[0].bv_offset = 0; bio->bi_vcnt = 1; - bio->bi_idx = 0; bio->bi_size = PAGE_SIZE; bio->bi_end_io = end_io; } |