summaryrefslogtreecommitdiff
path: root/drivers/md/bcache/request.c
diff options
context:
space:
mode:
authorKent Overstreet <koverstreet@google.com>2013-04-11 15:14:35 -0700
committerKent Overstreet <koverstreet@google.com>2013-04-20 17:56:12 -0700
commit2903381fce71004a7ce24d40fad53ba8236a3921 (patch)
treef493d51bdf17b2376e3f79fe0aecc8a7a9e37263 /drivers/md/bcache/request.c
parentcef5279735d3f6f0243e626963e6d5c84efade0a (diff)
downloadlinux-3.10-2903381fce71004a7ce24d40fad53ba8236a3921.tar.gz
linux-3.10-2903381fce71004a7ce24d40fad53ba8236a3921.tar.bz2
linux-3.10-2903381fce71004a7ce24d40fad53ba8236a3921.zip
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 83731dc36f3..e5ff12e52d5 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)
part_stat_unlock();
bio->bi_bdev = dc->bdev;
- bio->bi_sector += BDEV_DATA_START;
+ bio->bi_sector += dc->sb.data_offset;
if (cached_dev_get(dc)) {
s = search_alloc(bio, d);