/*
* This does all the move/link/unlink/rmdir magic.
*/
-static int process_recorded_refs(struct send_ctx *sctx, int *pending_move)
+static int process_recorded_refs(struct send_ctx *sctx, bool *pending_move)
{
struct btrfs_fs_info *fs_info = sctx->send_root->fs_info;
int ret = 0;
goto out;
if (ret == 1) {
can_rename = false;
- *pending_move = 1;
+ *pending_move = true;
}
}
goto out;
if (ret == 1) {
can_rename = false;
- *pending_move = 1;
+ *pending_move = true;
}
}
struct btrfs_key key;
struct btrfs_key found_key;
iterate_inode_ref_t cb;
- int pending_move = 0;
+ bool pending_move = false;
path = alloc_path_for_send();
if (!path)
}
static int process_recorded_refs_if_needed(struct send_ctx *sctx, bool at_end,
- int *pending_move,
- int *refs_processed)
+ bool *pending_move, bool *refs_processed)
{
int ret;
if (ret < 0)
return ret;
- *refs_processed = 1;
+ *refs_processed = true;
return 0;
}
int need_chown = 0;
bool need_fileattr = false;
int need_truncate = 1;
- int pending_move = 0;
- int refs_processed = 0;
+ bool pending_move = false;
+ bool refs_processed = false;
if (sctx->ignore_cur_inode)
return 0;