btrfs-progs: send: rename thread callback to read data from kernel

Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
David Sterba 2016-11-02 15:04:47 +01:00
parent ba23855cdc
commit 2f4e20a47a

View File

@ -225,7 +225,7 @@ out:
return ret; return ret;
} }
static void *dump_thread_copy(void *arg) static void* read_sent_data_copy(void *arg)
{ {
int ret; int ret;
struct btrfs_send *sctx = (struct btrfs_send*)arg; struct btrfs_send *sctx = (struct btrfs_send*)arg;
@ -258,7 +258,7 @@ out:
} }
#endif #endif
static void* dump_thread(void *arg) static void *read_sent_data(void *arg)
{ {
int ret; int ret;
struct btrfs_send *sctx = (struct btrfs_send*)arg; struct btrfs_send *sctx = (struct btrfs_send*)arg;
@ -318,8 +318,7 @@ static int do_send(struct btrfs_send *send, u64 parent_root_id,
send->send_fd = pipefd[0]; send->send_fd = pipefd[0];
if (!ret) if (!ret)
ret = pthread_create(&t_read, NULL, dump_thread, ret = pthread_create(&t_read, NULL, read_sent_data, send);
send);
if (ret) { if (ret) {
ret = -ret; ret = -ret;
error("thread setup failed: %s", strerror(-ret)); error("thread setup failed: %s", strerror(-ret));