dm-linear.c (4f0b70b0479101522b8645ddc1f5ee7137821db3) dm-linear.c (7de3ee57da4b717050e79c9313a9bf66ccc72519)
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>

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

83{
84 struct linear_c *lc = ti->private;
85
86 bio->bi_bdev = lc->dev->bdev;
87 if (bio_sectors(bio))
88 bio->bi_sector = linear_map_sector(ti, bio->bi_sector);
89}
90
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>

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

83{
84 struct linear_c *lc = ti->private;
85
86 bio->bi_bdev = lc->dev->bdev;
87 if (bio_sectors(bio))
88 bio->bi_sector = linear_map_sector(ti, bio->bi_sector);
89}
90
91static int linear_map(struct dm_target *ti, struct bio *bio,
92 union map_info *map_context)
91static int linear_map(struct dm_target *ti, struct bio *bio)
93{
94 linear_map_bio(ti, bio);
95
96 return DM_MAPIO_REMAPPED;
97}
98
99static int linear_status(struct dm_target *ti, status_type_t type,
100 unsigned status_flags, char *result, unsigned maxlen)

--- 83 unchanged lines hidden ---
92{
93 linear_map_bio(ti, bio);
94
95 return DM_MAPIO_REMAPPED;
96}
97
98static int linear_status(struct dm_target *ti, status_type_t type,
99 unsigned status_flags, char *result, unsigned maxlen)

--- 83 unchanged lines hidden ---