dm-linear.c (0898782247ae533d1f4e47a06bc5d4870931b284) dm-linear.c (2e2d6f7e44a2b9f96ca8af445ae0150a6cefde41)
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>

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

85 return lc->start + dm_target_offset(ti, bi_sector);
86}
87
88static void linear_map_bio(struct dm_target *ti, struct bio *bio)
89{
90 struct linear_c *lc = ti->private;
91
92 bio_set_dev(bio, lc->dev->bdev);
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>

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

85 return lc->start + dm_target_offset(ti, bi_sector);
86}
87
88static void linear_map_bio(struct dm_target *ti, struct bio *bio)
89{
90 struct linear_c *lc = ti->private;
91
92 bio_set_dev(bio, lc->dev->bdev);
93 if (bio_sectors(bio) || bio_op(bio) == REQ_OP_ZONE_RESET)
93 if (bio_sectors(bio) || op_is_zone_mgmt(bio_op(bio)))
94 bio->bi_iter.bi_sector =
95 linear_map_sector(ti, bio->bi_iter.bi_sector);
96}
97
98static int linear_map(struct dm_target *ti, struct bio *bio)
99{
100 linear_map_bio(ti, bio);
101

--- 149 unchanged lines hidden ---
94 bio->bi_iter.bi_sector =
95 linear_map_sector(ti, bio->bi_iter.bi_sector);
96}
97
98static int linear_map(struct dm_target *ti, struct bio *bio)
99{
100 linear_map_bio(ti, bio);
101

--- 149 unchanged lines hidden ---