diff options
author | Nikolay Borisov <n.borisov.lkml@gmail.com> | 2017-01-18 00:31:29 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-02-14 15:50:54 +0100 |
commit | 436635571bd0b4ba12ec81641667d85e7c29bad5 (patch) | |
tree | 7df8dd11f9679bfa33f27d0c78bc62c2973b5d5b /fs/btrfs/ioctl.c | |
parent | 4176bdbf2d1a58ebfe1c74f3502e2150db8ea445 (diff) | |
download | linux-436635571bd0b4ba12ec81641667d85e7c29bad5.tar.gz linux-436635571bd0b4ba12ec81641667d85e7c29bad5.tar.bz2 linux-436635571bd0b4ba12ec81641667d85e7c29bad5.zip |
btrfs: Make btrfs_record_snapshot_destroy take btrfs_inode
Signed-off-by: Nikolay Borisov <n.borisov.lkml@gmail.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/ioctl.c')
-rw-r--r-- | fs/btrfs/ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index 03bd53845360..529cc273e817 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c @@ -2497,7 +2497,7 @@ static noinline int btrfs_ioctl_snap_destroy(struct file *file, trans->block_rsv = &block_rsv; trans->bytes_reserved = block_rsv.size; - btrfs_record_snapshot_destroy(trans, dir); + btrfs_record_snapshot_destroy(trans, BTRFS_I(dir)); ret = btrfs_unlink_subvol(trans, root, dir, dest->root_key.objectid, |