diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c index 7be0318532738aa4d3d205fec087fa06f90ea2af..4b6ce5cab4443cd7b096bf535d0249535a98910c 100644 --- a/fs/btrfs/transaction.c +++ b/fs/btrfs/transaction.c @@ -1119,6 +1119,10 @@ static noinline int create_pending_snapshot(struct btrfs_trans_handle *trans, ret = btrfs_reloc_post_snapshot(trans, pending); if (ret) goto abort_trans; + + ret = btrfs_run_delayed_refs(trans, root, (unsigned long)-1); + if (ret) + goto abort_trans; fail: dput(parent); trans->block_rsv = rsv;