dm-crypt.c (818b930bc15077fc00ff16bb22c5df1857f05afa) | dm-crypt.c (7de3ee57da4b717050e79c9313a9bf66ccc72519) |
---|---|
1/* 2 * Copyright (C) 2003 Christophe Saout <christophe@saout.de> 3 * Copyright (C) 2004 Clemens Fruhwirth <clemens@endorphin.org> 4 * Copyright (C) 2006-2009 Red Hat, Inc. All rights reserved. 5 * 6 * This file is released under the GPL. 7 */ 8 --- 1675 unchanged lines hidden (view full) --- 1684 1685 return 0; 1686 1687bad: 1688 crypt_dtr(ti); 1689 return ret; 1690} 1691 | 1/* 2 * Copyright (C) 2003 Christophe Saout <christophe@saout.de> 3 * Copyright (C) 2004 Clemens Fruhwirth <clemens@endorphin.org> 4 * Copyright (C) 2006-2009 Red Hat, Inc. All rights reserved. 5 * 6 * This file is released under the GPL. 7 */ 8 --- 1675 unchanged lines hidden (view full) --- 1684 1685 return 0; 1686 1687bad: 1688 crypt_dtr(ti); 1689 return ret; 1690} 1691 |
1692static int crypt_map(struct dm_target *ti, struct bio *bio, 1693 union map_info *map_context) | 1692static int crypt_map(struct dm_target *ti, struct bio *bio) |
1694{ 1695 struct dm_crypt_io *io; 1696 struct crypt_config *cc = ti->private; 1697 1698 /* 1699 * If bio is REQ_FLUSH or REQ_DISCARD, just bypass crypt queues. 1700 * - for REQ_FLUSH device-mapper core ensures that no IO is in-flight 1701 * - for REQ_DISCARD caller must use flush if IO ordering matters --- 139 unchanged lines hidden (view full) --- 1841{ 1842 struct crypt_config *cc = ti->private; 1843 1844 return fn(ti, cc->dev, cc->start, ti->len, data); 1845} 1846 1847static struct target_type crypt_target = { 1848 .name = "crypt", | 1693{ 1694 struct dm_crypt_io *io; 1695 struct crypt_config *cc = ti->private; 1696 1697 /* 1698 * If bio is REQ_FLUSH or REQ_DISCARD, just bypass crypt queues. 1699 * - for REQ_FLUSH device-mapper core ensures that no IO is in-flight 1700 * - for REQ_DISCARD caller must use flush if IO ordering matters --- 139 unchanged lines hidden (view full) --- 1840{ 1841 struct crypt_config *cc = ti->private; 1842 1843 return fn(ti, cc->dev, cc->start, ti->len, data); 1844} 1845 1846static struct target_type crypt_target = { 1847 .name = "crypt", |
1849 .version = {1, 11, 0}, | 1848 .version = {1, 12, 0}, |
1850 .module = THIS_MODULE, 1851 .ctr = crypt_ctr, 1852 .dtr = crypt_dtr, 1853 .map = crypt_map, 1854 .status = crypt_status, 1855 .postsuspend = crypt_postsuspend, 1856 .preresume = crypt_preresume, 1857 .resume = crypt_resume, --- 34 unchanged lines hidden --- | 1849 .module = THIS_MODULE, 1850 .ctr = crypt_ctr, 1851 .dtr = crypt_dtr, 1852 .map = crypt_map, 1853 .status = crypt_status, 1854 .postsuspend = crypt_postsuspend, 1855 .preresume = crypt_preresume, 1856 .resume = crypt_resume, --- 34 unchanged lines hidden --- |