md/bitmap: md_bitmap_read_sb uses wrong bitmap blocks
authorZhao Heming <heming.zhao@suse.com>
Mon, 5 Oct 2020 16:00:23 +0000 (00:00 +0800)
committerSong Liu <songliubraving@fb.com>
Fri, 9 Oct 2020 05:31:29 +0000 (22:31 -0700)
commita913096decbf4101271e7d87b9affb1454bb7676
tree7bac2ad259872d46457d3fb351ddbe75f79e55a2
parentd7a1c483f797fb92c091e66b6a6e941f766b84e0
md/bitmap: md_bitmap_read_sb uses wrong bitmap blocks

The patched code is used to get chunks number, should use round-up div
to replace current sector_div. The same code is in md_bitmap_resize():
```
chunks = DIV_ROUND_UP_SECTOR_T(blocks, 1 << chunkshift);
```

Signed-off-by: Zhao Heming <heming.zhao@suse.com>
Signed-off-by: Song Liu <songliubraving@fb.com>
drivers/md/md-bitmap.c