dm-linear.c (3db564b4f5925f126c36cc033dfdbec0b6a785a9) dm-linear.c (e3290b9491ff5b7ee40f9e0a4c06821988a2a2bf)
1/*
2 * Copyright (C) 2001-2003 Sistina Software (UK) Limited.
3 *
4 * This file is released under the GPL.
5 */
6
7#include "dm.h"
8#include <linux/module.h>

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

141{
142 struct linear_c *lc = ti->private;
143 sector_t sector = linear_map_sector(ti, args->next_sector);
144
145 args->start = lc->start;
146 return blkdev_report_zones(lc->dev->bdev, sector, nr_zones,
147 dm_report_zones_cb, args);
148}
1/*
2 * Copyright (C) 2001-2003 Sistina Software (UK) Limited.
3 *
4 * This file is released under the GPL.
5 */
6
7#include "dm.h"
8#include <linux/module.h>

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

141{
142 struct linear_c *lc = ti->private;
143 sector_t sector = linear_map_sector(ti, args->next_sector);
144
145 args->start = lc->start;
146 return blkdev_report_zones(lc->dev->bdev, sector, nr_zones,
147 dm_report_zones_cb, args);
148}
149#else
150#define linear_report_zones NULL
149#endif
150
151static int linear_iterate_devices(struct dm_target *ti,
152 iterate_devices_callout_fn fn, void *data)
153{
154 struct linear_c *lc = ti->private;
155
156 return fn(ti, lc->dev, lc->start, ti->len, data);

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

222#define linear_dax_copy_from_iter NULL
223#define linear_dax_copy_to_iter NULL
224#define linear_dax_zero_page_range NULL
225#endif
226
227static struct target_type linear_target = {
228 .name = "linear",
229 .version = {1, 4, 0},
151#endif
152
153static int linear_iterate_devices(struct dm_target *ti,
154 iterate_devices_callout_fn fn, void *data)
155{
156 struct linear_c *lc = ti->private;
157
158 return fn(ti, lc->dev, lc->start, ti->len, data);

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

224#define linear_dax_copy_from_iter NULL
225#define linear_dax_copy_to_iter NULL
226#define linear_dax_zero_page_range NULL
227#endif
228
229static struct target_type linear_target = {
230 .name = "linear",
231 .version = {1, 4, 0},
230#ifdef CONFIG_BLK_DEV_ZONED
231 .features = DM_TARGET_PASSES_INTEGRITY | DM_TARGET_NOWAIT |
232 DM_TARGET_ZONED_HM | DM_TARGET_PASSES_CRYPTO,
233 .report_zones = linear_report_zones,
232 .features = DM_TARGET_PASSES_INTEGRITY | DM_TARGET_NOWAIT |
233 DM_TARGET_ZONED_HM | DM_TARGET_PASSES_CRYPTO,
234 .report_zones = linear_report_zones,
234#else
235 .features = DM_TARGET_PASSES_INTEGRITY | DM_TARGET_NOWAIT |
236 DM_TARGET_PASSES_CRYPTO,
237#endif
238 .module = THIS_MODULE,
239 .ctr = linear_ctr,
240 .dtr = linear_dtr,
241 .map = linear_map,
242 .status = linear_status,
243 .prepare_ioctl = linear_prepare_ioctl,
244 .iterate_devices = linear_iterate_devices,
245 .direct_access = linear_dax_direct_access,

--- 19 unchanged lines hidden ---
235 .module = THIS_MODULE,
236 .ctr = linear_ctr,
237 .dtr = linear_dtr,
238 .map = linear_map,
239 .status = linear_status,
240 .prepare_ioctl = linear_prepare_ioctl,
241 .iterate_devices = linear_iterate_devices,
242 .direct_access = linear_dax_direct_access,

--- 19 unchanged lines hidden ---