summaryrefslogtreecommitdiff
path: root/drivers/md/md-cluster.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.com>2015-10-19 15:44:00 +1100
committerNeilBrown <neilb@suse.com>2015-10-24 17:16:18 +1100
commit30661b49be784e8eecde60330ad7a8bdeb5291b1 (patch)
treedcf62fa3c117d6914b3965c747d8a5d7a70950bb /drivers/md/md-cluster.c
parent2e2a7cd96f5a076db4d4a4bd564652d37dd034c2 (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>
Diffstat (limited to 'drivers/md/md-cluster.c')
-rw-r--r--drivers/md/md-cluster.c6
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:
kfree(res);
}
-static void add_resync_info(struct mddev *mddev, struct dlm_lock_resource *lockres,
- sector_t lo, sector_t hi)
+static void add_resync_info(struct dlm_lock_resource *lockres,
+ sector_t lo, sector_t hi)
{
struct resync_info *ri;
@@ -884,7 +884,7 @@ 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 = {0};
- add_resync_info(mddev, cinfo->bitmap_lockres, lo, hi);
+ add_resync_info(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);