diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2016-01-02 19:30:54 +0100 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-01-04 16:29:12 +0100 |
commit | 93bbf5831dd1742a98c57b6415ee84ce35425067 (patch) | |
tree | f901d92050f26f073a1ceda7391df8c7cbf99944 /drivers/md/bcache/util.c | |
parent | dm-bufio: virt_to_phys() doesn't change remainder modulo PAGE_SIZE (diff) | |
download | linux-93bbf5831dd1742a98c57b6415ee84ce35425067.tar.xz linux-93bbf5831dd1742a98c57b6415ee84ce35425067.zip |
md: more open-coded offset_in_page()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/md/bcache/util.c')
-rw-r--r-- | drivers/md/bcache/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/bcache/util.c b/drivers/md/bcache/util.c index db3ae4c2b223..dde6172f3f10 100644 --- a/drivers/md/bcache/util.c +++ b/drivers/md/bcache/util.c @@ -230,7 +230,7 @@ void bch_bio_map(struct bio *bio, void *base) BUG_ON(!bio->bi_iter.bi_size); BUG_ON(bio->bi_vcnt); - bv->bv_offset = base ? ((unsigned long) base) % PAGE_SIZE : 0; + bv->bv_offset = base ? offset_in_page(base) : 0; goto start; for (; size; bio->bi_vcnt++, bv++) { |