diff options
author | Guoqing Jiang <gqjiang@suse.com> | 2015-10-12 17:21:22 +0800 |
---|---|---|
committer | Goldwyn Rodrigues <rgoldwyn@suse.com> | 2015-10-12 11:58:14 -0500 |
commit | 487cf9142c434530443b7bb8c545e9d0f30391b1 (patch) | |
tree | d27ffd4aea99b0b7cbfe6999dccac98b04a80ba2 /drivers/md | |
parent | faeff83fa478b4dca9877d6b10a25ad252891f14 (diff) | |
download | linux-487cf9142c434530443b7bb8c545e9d0f30391b1.tar.gz linux-487cf9142c434530443b7bb8c545e9d0f30391b1.tar.bz2 linux-487cf9142c434530443b7bb8c545e9d0f30391b1.zip |
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>
Diffstat (limited to 'drivers/md')
-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) { struct md_cluster_info *cinfo = mddev->cluster_info; struct cluster_msg cmsg; - int slot = cinfo->slot_number - 1; add_resync_info(mddev, cinfo->bitmap_lockres, lo, hi); /* Re-acquire the lock to refresh LVB */ dlm_lock_sync(cinfo->bitmap_lockres, DLM_LOCK_PW); cmsg.type = cpu_to_le32(RESYNCING); - cmsg.slot = cpu_to_le32(slot); cmsg.low = cpu_to_le64(lo); cmsg.high = cpu_to_le64(hi); |