diff options
author | NeilBrown <neilb@suse.com> | 2015-10-19 00:44:00 -0400 |
---|---|---|
committer | NeilBrown <neilb@suse.com> | 2015-10-24 02:16:18 -0400 |
commit | 30661b49be784e8eecde60330ad7a8bdeb5291b1 (patch) | |
tree | dcf62fa3c117d6914b3965c747d8a5d7a70950bb | |
parent | 2e2a7cd96f5a076db4d4a4bd564652d37dd034c2 (diff) |
md-cluster: remove mddev arg from add_resync_info()
The arg isn't used, so its presence is only confusing.
Signed-off-by: NeilBrown <neilb@suse.com>
-rw-r--r-- | drivers/md/md-cluster.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/md/md-cluster.c b/drivers/md/md-cluster.c index 818bcccb2962..d6a1126d85ce 100644 --- a/drivers/md/md-cluster.c +++ b/drivers/md/md-cluster.c | |||
@@ -195,8 +195,8 @@ retry: | |||
195 | kfree(res); | 195 | kfree(res); |
196 | } | 196 | } |
197 | 197 | ||
198 | static void add_resync_info(struct mddev *mddev, struct dlm_lock_resource *lockres, | 198 | static void add_resync_info(struct dlm_lock_resource *lockres, |
199 | sector_t lo, sector_t hi) | 199 | sector_t lo, sector_t hi) |
200 | { | 200 | { |
201 | struct resync_info *ri; | 201 | struct resync_info *ri; |
202 | 202 | ||
@@ -884,7 +884,7 @@ static int resync_info_update(struct mddev *mddev, sector_t lo, sector_t hi) | |||
884 | struct md_cluster_info *cinfo = mddev->cluster_info; | 884 | struct md_cluster_info *cinfo = mddev->cluster_info; |
885 | struct cluster_msg cmsg = {0}; | 885 | struct cluster_msg cmsg = {0}; |
886 | 886 | ||
887 | add_resync_info(mddev, cinfo->bitmap_lockres, lo, hi); | 887 | add_resync_info(cinfo->bitmap_lockres, lo, hi); |
888 | /* Re-acquire the lock to refresh LVB */ | 888 | /* Re-acquire the lock to refresh LVB */ |
889 | dlm_lock_sync(cinfo->bitmap_lockres, DLM_LOCK_PW); | 889 | dlm_lock_sync(cinfo->bitmap_lockres, DLM_LOCK_PW); |
890 | cmsg.type = cpu_to_le32(RESYNCING); | 890 | cmsg.type = cpu_to_le32(RESYNCING); |