diff options
author | Guoqing Jiang <gqjiang@suse.com> | 2017-03-01 11:42:39 +0300 |
---|---|---|
committer | Shaohua Li <shli@fb.com> | 2017-03-17 02:55:50 +0300 |
commit | b98938d16a108d0201d54b8db1337dac71aebfdd (patch) | |
tree | 2005c989bfe629751fa7349d808cd541695a1930 /drivers/md/md.c | |
parent | 7da3d203330305695f38302c076ee0d32c005ede (diff) | |
download | linux-b98938d16a108d0201d54b8db1337dac71aebfdd.tar.xz |
md-cluster: introduce cluster_check_sync_size
Support resize is a little complex for clustered
raid, since we need to ensure all the nodes share
the same knowledge about the size of raid.
We achieve the goal by check the sync_size which
is in each node's bitmap, we can only change the
capacity after cluster_check_sync_size returns 0.
Also, get_bitmap_from_slot is added to get a slot's
bitmap. And we exported some funcs since they are
used in cluster_check_sync_size().
We can also reuse get_bitmap_from_slot to remove
redundant code existed in bitmap_copy_from_slot.
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 'drivers/md/md.c')
0 files changed, 0 insertions, 0 deletions