diff options
author | David Sterba <dsterba@suse.com> | 2016-11-02 15:04:47 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-12-14 15:06:34 +0100 |
commit | 2f4e20a47a91cafa79b1053c03f9e41d5fb10ccf (patch) | |
tree | f3e576c5243c9b8d04ef8ae0d6fd020b9b0d0baa | |
parent | ba23855cdc8961bbaef1fcad4854d494cdb3afd3 (diff) |
btrfs-progs: send: rename thread callback to read data from kernel
Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r-- | cmds-send.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/cmds-send.c b/cmds-send.c index 37b4e791..a4fb1265 100644 --- a/cmds-send.c +++ b/cmds-send.c @@ -225,7 +225,7 @@ out: return ret; } -static void *dump_thread_copy(void *arg) +static void* read_sent_data_copy(void *arg) { int ret; struct btrfs_send *sctx = (struct btrfs_send*)arg; @@ -258,7 +258,7 @@ out: } #endif -static void* dump_thread(void *arg) +static void *read_sent_data(void *arg) { int ret; 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]; if (!ret) - ret = pthread_create(&t_read, NULL, dump_thread, - send); + ret = pthread_create(&t_read, NULL, read_sent_data, send); if (ret) { ret = -ret; error("thread setup failed: %s", strerror(-ret)); |