diff options
author | Guoqing Jiang <gqjiang@suse.com> | 2015-10-12 05:21:22 -0400 |
---|---|---|
committer | Goldwyn Rodrigues <rgoldwyn@suse.com> | 2015-10-12 12:58:14 -0400 |
commit | 487cf9142c434530443b7bb8c545e9d0f30391b1 (patch) | |
tree | d27ffd4aea99b0b7cbfe6999dccac98b04a80ba2 | |
parent | faeff83fa478b4dca9877d6b10a25ad252891f14 (diff) |
md-cluster: remove unnecessary setting for slot
Since slot will be set within _sendmsg, we can remove
the redundant code in resync_info_update.
Signed-off-by: Guoqing Jiang <gqjiang@suse.com>
-rw-r--r-- | drivers/md/md-cluster.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/md/md-cluster.c b/drivers/md/md-cluster.c index 3c1818516070..ba80df923605 100644 --- a/drivers/md/md-cluster.c +++ b/drivers/md/md-cluster.c | |||
@@ -880,13 +880,11 @@ static int resync_info_update(struct mddev *mddev, sector_t lo, sector_t hi) | |||
880 | { | 880 | { |
881 | struct md_cluster_info *cinfo = mddev->cluster_info; | 881 | struct md_cluster_info *cinfo = mddev->cluster_info; |
882 | struct cluster_msg cmsg; | 882 | struct cluster_msg cmsg; |
883 | int slot = cinfo->slot_number - 1; | ||
884 | 883 | ||
885 | add_resync_info(mddev, cinfo->bitmap_lockres, lo, hi); | 884 | add_resync_info(mddev, cinfo->bitmap_lockres, lo, hi); |
886 | /* Re-acquire the lock to refresh LVB */ | 885 | /* Re-acquire the lock to refresh LVB */ |
887 | dlm_lock_sync(cinfo->bitmap_lockres, DLM_LOCK_PW); | 886 | dlm_lock_sync(cinfo->bitmap_lockres, DLM_LOCK_PW); |
888 | cmsg.type = cpu_to_le32(RESYNCING); | 887 | cmsg.type = cpu_to_le32(RESYNCING); |
889 | cmsg.slot = cpu_to_le32(slot); | ||
890 | cmsg.low = cpu_to_le64(lo); | 888 | cmsg.low = cpu_to_le64(lo); |
891 | cmsg.high = cpu_to_le64(hi); | 889 | cmsg.high = cpu_to_le64(hi); |
892 | 890 | ||