diff options
author | David Sterba <dsterba@suse.cz> | 2014-04-15 16:42:03 +0200 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2014-06-09 17:20:32 -0700 |
commit | 61155aa04ebcba6a33f2a281c46f351ca150d816 (patch) | |
tree | c45f6bdf7a5ee91e4936c4e6ebb3f2e7f3c1ac3f /fs/btrfs/ioctl.c | |
parent | 521e0546c970c3d845076f243828fa7abd71edfc (diff) | |
download | linux-61155aa04ebcba6a33f2a281c46f351ca150d816.tar.bz2 |
btrfs: assert that send is not in progres before root deletion
CC: Miao Xie <miaox@cn.fujitsu.com>
CC: Wang Shilong <wangsl.fnst@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'fs/btrfs/ioctl.c')
-rw-r--r-- | fs/btrfs/ioctl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index 2db3fe12f50d..ebac486f59af 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c @@ -2424,6 +2424,7 @@ out_unlock: shrink_dcache_sb(root->fs_info->sb); btrfs_invalidate_inodes(dest); d_delete(dentry); + ASSERT(dest->send_in_progress == 0); /* the last ref */ if (dest->cache_inode) { |