dm-io.c (2d8ad8719591fa803b0d589ed057fa46f49b7155) | dm-io.c (721a9602e6607417c6bc15b18e97a2f35266c690) |
---|---|
1/* 2 * Copyright (C) 2003 Sistina Software 3 * Copyright (C) 2006 Red Hat GmbH 4 * 5 * This file is released under the GPL. 6 */ 7 8#include "dm.h" --- 338 unchanged lines hidden (view full) --- 347 struct io *io, int sync) 348{ 349 int i; 350 struct dpages old_pages = *dp; 351 352 BUG_ON(num_regions > DM_IO_MAX_REGIONS); 353 354 if (sync) | 1/* 2 * Copyright (C) 2003 Sistina Software 3 * Copyright (C) 2006 Red Hat GmbH 4 * 5 * This file is released under the GPL. 6 */ 7 8#include "dm.h" --- 338 unchanged lines hidden (view full) --- 347 struct io *io, int sync) 348{ 349 int i; 350 struct dpages old_pages = *dp; 351 352 BUG_ON(num_regions > DM_IO_MAX_REGIONS); 353 354 if (sync) |
355 rw |= REQ_SYNC | REQ_UNPLUG; | 355 rw |= REQ_SYNC; |
356 357 /* 358 * For multiple regions we need to be careful to rewind 359 * the dp object for each call to do_region. 360 */ 361 for (i = 0; i < num_regions; i++) { 362 *dp = old_pages; 363 if (where[i].count || (rw & REQ_FLUSH)) --- 143 unchanged lines hidden --- | 356 357 /* 358 * For multiple regions we need to be careful to rewind 359 * the dp object for each call to do_region. 360 */ 361 for (i = 0; i < num_regions; i++) { 362 *dp = old_pages; 363 if (where[i].count || (rw & REQ_FLUSH)) --- 143 unchanged lines hidden --- |