diff --git a/fs/btrfs/send.c b/fs/btrfs/send.c index a5fae484d4e104986a3d8f16df38ac621cb7f511..bea5b4378cc5c71191bd72bfdd15b3258f80f5a1 100644 --- a/fs/btrfs/send.c +++ b/fs/btrfs/send.c @@ -1589,7 +1589,7 @@ static int is_first_ref(struct send_ctx *sctx, if (ret < 0) goto out; - if (name_len != fs_path_len(tmp_name)) { + if (dir != tmp_dir || name_len != fs_path_len(tmp_name)) { ret = 0; goto out; }