diff options
author | Anand Jain <anand.jain@oracle.com> | 2016-12-21 15:42:08 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-02-14 15:50:50 +0100 |
commit | 8c3e6b1f0cd1765d6aeeaa9cdb69b39cea0b6804 (patch) | |
tree | 5da6fb83e758fc24b892c3377207da43464785bd /fs/btrfs/ioctl.c | |
parent | fef394f75bc17599c17287fbc437d4fb07a98583 (diff) | |
download | op-kernel-dev-8c3e6b1f0cd1765d6aeeaa9cdb69b39cea0b6804.zip op-kernel-dev-8c3e6b1f0cd1765d6aeeaa9cdb69b39cea0b6804.tar.gz |
btrfs: btrfs_defrag_root() doesn't defrag extent root tree
Since btrfs_defrag_leaves() does not support extent_root, remove its
corresponding call. The user can use the file based defrag to defrag
extents as of now.
No change in behaviour as extent_root is explicitly skipped in
btrfs_defrag_leaves and this has never worked as expected.
Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
[ ehnance changelong ]
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/ioctl.c')
-rw-r--r-- | fs/btrfs/ioctl.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index 03de93f..fe8b585 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c @@ -2613,9 +2613,6 @@ static int btrfs_ioctl_defrag(struct file *file, void __user *argp) goto out; } ret = btrfs_defrag_root(root); - if (ret) - goto out; - ret = btrfs_defrag_root(root->fs_info->extent_root); break; case S_IFREG: if (!(file->f_mode & FMODE_WRITE)) { |