summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-snap.c
diff options
context:
space:
mode:
authorMikulas Patocka <mpatocka@redhat.com>2011-05-29 13:03:13 +0100
committerAlasdair G Kergon <agk@redhat.com>2011-05-29 13:03:13 +0100
commitfa34ce73072f90ecd90dcc43f29d82e70e5f8676 (patch)
tree26f9c986da4433fa8ed00a1685e34709997474b2 /drivers/md/dm-snap.c
parent5f43ba2950414dc0abf4ac44c397d88069056746 (diff)
downloadlinux-stable-fa34ce73072f90ecd90dcc43f29d82e70e5f8676.tar.gz
linux-stable-fa34ce73072f90ecd90dcc43f29d82e70e5f8676.tar.bz2
linux-stable-fa34ce73072f90ecd90dcc43f29d82e70e5f8676.zip
dm kcopyd: return client directly and not through a pointer
Return client directly from dm_kcopyd_client_create, not through a parameter, making it consistent with dm_io_client_create. Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/md/dm-snap.c')
-rw-r--r--drivers/md/dm-snap.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/md/dm-snap.c b/drivers/md/dm-snap.c
index 5a2296de84a3..9ecff5f3023a 100644
--- a/drivers/md/dm-snap.c
+++ b/drivers/md/dm-snap.c
@@ -1111,8 +1111,9 @@ static int snapshot_ctr(struct dm_target *ti, unsigned int argc, char **argv)
goto bad_hash_tables;
}
- r = dm_kcopyd_client_create(&s->kcopyd_client);
- if (r) {
+ s->kcopyd_client = dm_kcopyd_client_create();
+ if (IS_ERR(s->kcopyd_client)) {
+ r = PTR_ERR(s->kcopyd_client);
ti->error = "Could not create kcopyd client";
goto bad_kcopyd;
}