X-Git-Url: http://git.cascardo.eti.br/?a=blobdiff_plain;f=fs%2Fbtrfs%2Fioctl.c;h=ccb30ca9ebb26ac18326481648c0270e646655c7;hb=1ec9a1ae1e30c733077c0b288c4301b66b7a81f2;hp=86249cf78897f7b49a3df983e534faed5fa04a3c;hpb=c05c5ee5ea40fe40df5e29471f583a0eb7c531e3;p=cascardo%2Flinux.git diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index 86249cf78897..ccb30ca9ebb2 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c @@ -59,6 +59,7 @@ #include "props.h" #include "sysfs.h" #include "qgroup.h" +#include "tree-log.h" #ifdef CONFIG_64BIT /* If we have a 32-bit userspace and 64-bit kernel, then the UAPI @@ -2521,6 +2522,8 @@ static noinline int btrfs_ioctl_snap_destroy(struct file *file, out_end_trans: trans->block_rsv = NULL; trans->bytes_reserved = 0; + if (!err) + btrfs_record_snapshot_destroy(trans, dir); ret = btrfs_end_transaction(trans, root); if (ret && !err) err = ret;