diff options
author | Kent Overstreet <koverstreet@google.com> | 2012-09-04 18:23:14 -0400 |
---|---|---|
committer | Kent Overstreet <koverstreet@google.com> | 2013-03-23 17:15:31 -0400 |
commit | 4f2ac93c175c4922bdddbfec6cad94b32cea0070 (patch) | |
tree | ce9df811f8a59c3af8486ee20fdc9d36fe5bfd25 /fs/jfs | |
parent | 5b83636ae3c3b4f87d02a5929ad4dee831534db0 (diff) |
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 'fs/jfs')
-rw-r--r-- | fs/jfs/jfs_logmgr.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/jfs/jfs_logmgr.c b/fs/jfs/jfs_logmgr.c index 2eb952c41a69..8ae5e350da43 100644 --- a/fs/jfs/jfs_logmgr.c +++ b/fs/jfs/jfs_logmgr.c | |||
@@ -2004,7 +2004,6 @@ static int lbmRead(struct jfs_log * log, int pn, struct lbuf ** bpp) | |||
2004 | bio->bi_io_vec[0].bv_offset = bp->l_offset; | 2004 | bio->bi_io_vec[0].bv_offset = bp->l_offset; |
2005 | 2005 | ||
2006 | bio->bi_vcnt = 1; | 2006 | bio->bi_vcnt = 1; |
2007 | bio->bi_idx = 0; | ||
2008 | bio->bi_size = LOGPSIZE; | 2007 | bio->bi_size = LOGPSIZE; |
2009 | 2008 | ||
2010 | bio->bi_end_io = lbmIODone; | 2009 | bio->bi_end_io = lbmIODone; |
@@ -2145,7 +2144,6 @@ static void lbmStartIO(struct lbuf * bp) | |||
2145 | bio->bi_io_vec[0].bv_offset = bp->l_offset; | 2144 | bio->bi_io_vec[0].bv_offset = bp->l_offset; |
2146 | 2145 | ||
2147 | bio->bi_vcnt = 1; | 2146 | bio->bi_vcnt = 1; |
2148 | bio->bi_idx = 0; | ||
2149 | bio->bi_size = LOGPSIZE; | 2147 | bio->bi_size = LOGPSIZE; |
2150 | 2148 | ||
2151 | bio->bi_end_io = lbmIODone; | 2149 | bio->bi_end_io = lbmIODone; |