diff options
author | Guoqing Jiang <gqjiang@suse.com> | 2016-05-02 11:50:13 -0400 |
---|---|---|
committer | Shaohua Li <shli@fb.com> | 2016-05-04 12:39:35 -0700 |
commit | 7f86ffed9b5f3f0b1a29108c5e965942b935ec98 (patch) | |
tree | 35c6119e19c7da003a541708e1143fea77dd2530 /Documentation/sysctl | |
parent | 18c9ff7f487efa8e88886bee21bd3516dde05bc5 (diff) | |
download | linux-7f86ffed9b5f3f0b1a29108c5e965942b935ec98.tar.bz2 |
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>
Diffstat (limited to 'Documentation/sysctl')
0 files changed, 0 insertions, 0 deletions