aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/bcache/request.c
diff options
context:
space:
mode:
authorKent Overstreet <koverstreet@google.com>2013-04-11 18:14:35 -0400
committerKent Overstreet <koverstreet@google.com>2013-04-20 20:56:12 -0400
commit2903381fce71004a7ce24d40fad53ba8236a3921 (patch)
treef493d51bdf17b2376e3f79fe0aecc8a7a9e37263 /drivers/md/bcache/request.c
parentcef5279735d3f6f0243e626963e6d5c84efade0a (diff)
bcache: Take data offset from the bdev superblock.
Add a new superblock version, and consolidate related defines. Signed-off-by: Gabriel de Perthuis <g2p.code+bcache@gmail.com> Signed-off-by: Kent Overstreet <koverstreet@google.com>
Diffstat (limited to 'drivers/md/bcache/request.c')
-rw-r--r--drivers/md/bcache/request.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/bcache/request.c b/drivers/md/bcache/request.c
index 83731dc36f34..e5ff12e52d5b 100644
--- a/drivers/md/bcache/request.c
+++ b/drivers/md/bcache/request.c
@@ -1220,7 +1220,7 @@ static void cached_dev_make_request(struct request_queue *q, struct bio *bio)
1220 part_stat_unlock(); 1220 part_stat_unlock();
1221 1221
1222 bio->bi_bdev = dc->bdev; 1222 bio->bi_bdev = dc->bdev;
1223 bio->bi_sector += BDEV_DATA_START; 1223 bio->bi_sector += dc->sb.data_offset;
1224 1224
1225 if (cached_dev_get(dc)) { 1225 if (cached_dev_get(dc)) {
1226 s = search_alloc(bio, d); 1226 s = search_alloc(bio, d);