aboutsummaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorJens Axboe <jens.axboe@oracle.com>2007-08-16 07:43:12 -0400
committerJens Axboe <axboe@carl.home.kernel.dk>2007-10-10 03:25:56 -0400
commit6c92e699b56287da582ccb12a64b959b6d6109ba (patch)
treeac8c9f26640ff8b35cd96f8222f8ce84ba2c53e5 /block
parentbc1c56fde6dd1c85e2047c276456c07bd4508b5c (diff)
Fixup rq_for_each_segment() indentation
Remove one level of nesting where appropriate. Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'block')
-rw-r--r--block/ll_rw_blk.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/block/ll_rw_blk.c b/block/ll_rw_blk.c
index e0608c4ecc23..c6b2a477d33e 100644
--- a/block/ll_rw_blk.c
+++ b/block/ll_rw_blk.c
@@ -1364,28 +1364,28 @@ int blk_rq_map_sg(struct request_queue *q, struct request *rq,
1364 */ 1364 */
1365 bvprv = NULL; 1365 bvprv = NULL;
1366 rq_for_each_segment(bvec, rq, iter) { 1366 rq_for_each_segment(bvec, rq, iter) {
1367 int nbytes = bvec->bv_len; 1367 int nbytes = bvec->bv_len;
1368 1368
1369 if (bvprv && cluster) { 1369 if (bvprv && cluster) {
1370 if (sg[nsegs - 1].length + nbytes > q->max_segment_size) 1370 if (sg[nsegs - 1].length + nbytes > q->max_segment_size)
1371 goto new_segment; 1371 goto new_segment;
1372 1372
1373 if (!BIOVEC_PHYS_MERGEABLE(bvprv, bvec)) 1373 if (!BIOVEC_PHYS_MERGEABLE(bvprv, bvec))
1374 goto new_segment; 1374 goto new_segment;
1375 if (!BIOVEC_SEG_BOUNDARY(q, bvprv, bvec)) 1375 if (!BIOVEC_SEG_BOUNDARY(q, bvprv, bvec))
1376 goto new_segment; 1376 goto new_segment;
1377 1377
1378 sg[nsegs - 1].length += nbytes; 1378 sg[nsegs - 1].length += nbytes;
1379 } else { 1379 } else {
1380new_segment: 1380new_segment:
1381 memset(&sg[nsegs],0,sizeof(struct scatterlist)); 1381 memset(&sg[nsegs],0,sizeof(struct scatterlist));
1382 sg[nsegs].page = bvec->bv_page; 1382 sg[nsegs].page = bvec->bv_page;
1383 sg[nsegs].length = nbytes; 1383 sg[nsegs].length = nbytes;
1384 sg[nsegs].offset = bvec->bv_offset; 1384 sg[nsegs].offset = bvec->bv_offset;
1385 1385
1386 nsegs++; 1386 nsegs++;
1387 } 1387 }
1388 bvprv = bvec; 1388 bvprv = bvec;
1389 } /* segments in rq */ 1389 } /* segments in rq */
1390 1390
1391 return nsegs; 1391 return nsegs;