Guoqing Jiang
7f86ffed9b
md-cluster/bitmap: fix wrong calcuation of offset
...
The offset is wrong in bitmap_storage_alloc, we should
set it like below in bitmap_init_from_disk().
node_offset = bitmap->cluster_slot * (DIV_ROUND_UP(store->bytes, PAGE_SIZE));
Because 'offset' is only assigned to 'page->index' and
that is usually over-written by read_sb_page. So it does
not cause problem in general, but it still need to be fixed.
Reviewed-by: NeilBrown <neilb@suse.com>
Signed-off-by: Guoqing Jiang <gqjiang@suse.com>
Signed-off-by: Shaohua Li <shli@fb.com>
2016-05-04 12:39:35 -07:00
..
2016-03-08 09:19:10 -07:00
2015-12-14 09:26:01 -05:00
2016-05-04 12:39:35 -07:00
2016-05-04 12:39:35 -07:00
2015-07-29 08:55:15 -06:00
2015-05-29 14:19:06 -04:00
2016-01-12 17:11:47 -08:00
2014-11-10 15:25:30 -05:00
2016-04-17 11:24:46 -04:00
2016-03-10 17:12:12 -05:00
2015-11-04 21:19:53 -08:00
2015-06-11 17:13:01 -04:00
2016-03-10 17:12:11 -05:00
2015-06-11 17:13:01 -04:00
2016-03-10 17:12:12 -05:00
2016-03-17 11:22:54 -07:00
2016-02-22 22:34:37 -05:00
2015-10-31 19:06:02 -04:00
2015-11-04 21:19:53 -08:00
2016-01-08 20:03:05 -05:00
2016-02-22 22:34:37 -05:00
2016-01-04 10:29:12 -05:00
2016-02-22 22:34:37 -05:00
2015-11-06 17:50:42 -08:00
2015-10-31 19:06:03 -04:00
2015-10-31 19:06:00 -04:00
2015-04-15 12:10:20 -04:00
2016-02-22 22:34:37 -05:00
2016-03-10 17:12:04 -05:00
2016-02-22 22:34:42 -05:00
2016-02-22 22:34:42 -05:00
2016-02-22 22:34:37 -05:00
2015-10-02 12:02:31 -04:00
2015-10-31 19:06:01 -04:00
2016-02-22 22:34:42 -05:00
2016-02-22 22:34:42 -05:00
2016-01-08 20:03:05 -05:00
2016-01-08 20:03:05 -05:00
2016-03-10 17:12:09 -05:00
2015-08-18 17:20:03 -04:00
2015-06-17 12:40:40 -04:00
2015-09-02 16:35:26 -07:00
2015-10-31 19:06:06 -04:00
2015-04-15 12:10:17 -04:00
2016-03-10 17:12:09 -05:00
2016-02-22 11:06:21 -05:00
2016-03-10 17:12:09 -05:00
2015-06-11 17:13:04 -04:00
2016-03-11 16:15:22 -05:00
2016-02-22 22:34:37 -05:00
2015-12-10 10:39:03 -05:00
2016-02-22 22:34:37 -05:00
2015-12-10 10:39:03 -05:00
2015-07-29 08:55:15 -06:00
2016-04-11 11:49:09 -04:00
2016-02-22 22:34:37 -05:00
2016-01-20 13:52:20 -08:00
2016-03-10 17:12:11 -05:00
2015-08-13 12:31:57 -06:00
2016-03-10 17:12:08 -05:00
2016-05-04 12:39:35 -07:00
2016-01-06 11:38:57 +11:00
2016-05-04 12:39:35 -07:00
2016-01-15 12:28:00 -08:00
2016-03-14 11:32:26 -07:00
2016-04-25 08:43:58 -07:00
2015-08-13 12:31:57 -06:00
2016-03-31 10:04:17 -07:00
2015-10-12 01:32:05 -05:00
2016-01-14 11:49:43 +11:00
2016-04-29 14:18:03 -07:00
2016-02-26 09:44:56 -08:00
2016-03-17 14:27:01 -07:00
2015-08-31 19:43:45 +02:00