Message ID | 1477618850-12922-7-git-send-email-robbieko@synology.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/fs/btrfs/send.c b/fs/btrfs/send.c index 81a2bee..b4a4724 100644 --- a/fs/btrfs/send.c +++ b/fs/btrfs/send.c @@ -3338,14 +3338,17 @@ finish: /* * The parent inode might have been deleted in the send snapshot */ + u64 gen; ret = get_inode_info(sctx->send_root, cur->dir, NULL, - NULL, NULL, NULL, NULL, NULL); - if (ret == -ENOENT) { + &gen, NULL, NULL, NULL, NULL); + + if (ret < 0 && ret != -ENOENT) + goto out; + + if (ret == -ENOENT || gen != cur->dir_gen) { ret = 0; continue; } - if (ret < 0) - goto out; ret = send_utimes(sctx, cur->dir, cur->dir_gen); if (ret < 0)