Message ID | 509d20faf13eaa4b44ec44c9402c56cbc54c3338.1739965104.git.fdmanana@suse.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | btrfs: avoid repeated path computations and allocations for send | expand |
diff --git a/fs/btrfs/send.c b/fs/btrfs/send.c index 01b8b570d6ed..e29b5a5ccdd6 100644 --- a/fs/btrfs/send.c +++ b/fs/btrfs/send.c @@ -4950,12 +4950,8 @@ static int __process_deleted_xattr(int num, struct btrfs_key *di_key, static int process_new_xattr(struct send_ctx *sctx) { - int ret = 0; - - ret = iterate_dir_item(sctx->send_root, sctx->left_path, - __process_new_xattr, sctx); - - return ret; + return iterate_dir_item(sctx->send_root, sctx->left_path, + __process_new_xattr, sctx); } static int process_deleted_xattr(struct send_ctx *sctx)