Home
last modified time | relevance | path

Searched hist:b38c9eb4757d5bac1eb8634a9516ef918fca2525 (Results 1 – 3 of 3) sorted by relevance

/linux/fs/ceph/
H A Dmdsmap.cdiff b38c9eb4757d5bac1eb8634a9516ef918fca2525 Wed Dec 04 12:57:39 CET 2019 Xiubo Li <xiubli@redhat.com> ceph: add possible_max_rank and make the code more readable

The m_num_mds here is actually the number for MDSs which are in
up:active status, and it will be duplicated to m_num_active_mds,
so remove it.

Add possible_max_rank to the mdsmap struct and this will be
the correctly possible largest rank boundary.

Remove the special case for one mds in __mdsmap_get_random_mds(),
because the validate mds rank may not always be 0.

Signed-off-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
H A Ddebugfs.cdiff b38c9eb4757d5bac1eb8634a9516ef918fca2525 Wed Dec 04 12:57:39 CET 2019 Xiubo Li <xiubli@redhat.com> ceph: add possible_max_rank and make the code more readable

The m_num_mds here is actually the number for MDSs which are in
up:active status, and it will be duplicated to m_num_active_mds,
so remove it.

Add possible_max_rank to the mdsmap struct and this will be
the correctly possible largest rank boundary.

Remove the special case for one mds in __mdsmap_get_random_mds(),
because the validate mds rank may not always be 0.

Signed-off-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
H A Dmds_client.cdiff b38c9eb4757d5bac1eb8634a9516ef918fca2525 Wed Dec 04 12:57:39 CET 2019 Xiubo Li <xiubli@redhat.com> ceph: add possible_max_rank and make the code more readable

The m_num_mds here is actually the number for MDSs which are in
up:active status, and it will be duplicated to m_num_active_mds,
so remove it.

Add possible_max_rank to the mdsmap struct and this will be
the correctly possible largest rank boundary.

Remove the special case for one mds in __mdsmap_get_random_mds(),
because the validate mds rank may not always be 0.

Signed-off-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>