diff options
author | Kent Overstreet <koverstreet@google.com> | 2013-04-11 15:14:35 -0700 |
---|---|---|
committer | Kent Overstreet <koverstreet@google.com> | 2013-04-20 17:56:12 -0700 |
commit | 2903381fce71004a7ce24d40fad53ba8236a3921 (patch) | |
tree | f493d51bdf17b2376e3f79fe0aecc8a7a9e37263 /drivers/md/bcache/request.c | |
parent | cef5279735d3f6f0243e626963e6d5c84efade0a (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.c | 2 |
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) 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); |