dm.c (93e6442c76a0d26ad028c5df9b4a1e3096d9c36b) dm.c (a4aa5e56e5189b88a2891cdcc350dac618810354)
1/*
2 * Copyright (C) 2001, 2002 Sistina Software (UK) Limited.
3 * Copyright (C) 2004-2008 Red Hat, Inc. All rights reserved.
4 *
5 * This file is released under the GPL.
6 */
7
8#include "dm-core.h"

--- 1370 unchanged lines hidden (view full) ---

1379
1380 start_io_acct(ci.io);
1381
1382 if (bio->bi_opf & REQ_PREFLUSH) {
1383 ci.bio = &ci.md->flush_bio;
1384 ci.sector_count = 0;
1385 error = __send_empty_flush(&ci);
1386 /* dec_pending submits any data associated with flush */
1/*
2 * Copyright (C) 2001, 2002 Sistina Software (UK) Limited.
3 * Copyright (C) 2004-2008 Red Hat, Inc. All rights reserved.
4 *
5 * This file is released under the GPL.
6 */
7
8#include "dm-core.h"

--- 1370 unchanged lines hidden (view full) ---

1379
1380 start_io_acct(ci.io);
1381
1382 if (bio->bi_opf & REQ_PREFLUSH) {
1383 ci.bio = &ci.md->flush_bio;
1384 ci.sector_count = 0;
1385 error = __send_empty_flush(&ci);
1386 /* dec_pending submits any data associated with flush */
1387 } else if (bio_op(bio) == REQ_OP_ZONE_RESET) {
1388 ci.bio = bio;
1389 ci.sector_count = 0;
1390 error = __split_and_process_non_flush(&ci);
1387 } else {
1388 ci.bio = bio;
1389 ci.sector_count = bio_sectors(bio);
1390 while (ci.sector_count && !error)
1391 error = __split_and_process_non_flush(&ci);
1392 }
1393
1394 /* drop the extra reference count */

--- 1499 unchanged lines hidden ---
1391 } else {
1392 ci.bio = bio;
1393 ci.sector_count = bio_sectors(bio);
1394 while (ci.sector_count && !error)
1395 error = __split_and_process_non_flush(&ci);
1396 }
1397
1398 /* drop the extra reference count */

--- 1499 unchanged lines hidden ---