search for: btrfs_ioctl_defrag

Displaying 3 results from an estimated 3 matches for "btrfs_ioctl_defrag".

Did you mean: btrfs_ioc_defrag
2013 Mar 04
1
[PATCH] Btrfs: allow running defrag in parallel to administrative tasks
...commit. Signed-off-by: Stefan Behrens <sbehrens@giantdisaster.de> --- fs/btrfs/ioctl.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index b908960..40631cf 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c @@ -2245,13 +2245,6 @@ static int btrfs_ioctl_defrag(struct file *file, void __user *argp) if (ret) return ret; - if (atomic_xchg(&root->fs_info->mutually_exclusive_operation_running, - 1)) { - pr_info("btrfs: dev add/delete/balance/replace/resize operation in progress\n"); - mnt_drop_write_file(file); - return -EINVAL...
2013 Apr 30
1
Panic while running defrag
I ran into a panic while running find -xdev | xargs brtfs fi defrag ''{}''. I don''t remember the exact command because the history was not saved. I also started and stopped it a few times however. The kernel logs were on a different filesystem. Here is the kern.log:http://fpaste.org/9383/36729191/ My setup is two 2TB hard drives in raid 1. They are both sata drives so
2010 Apr 19
0
[PATCH 08/12] Btrfs: Introduce global metadata reservation
...inode->i_ino, ret); + btrfs_end_transaction(trans, root); } Only in 9/fs/btrfs: inode.c.rej diff -urp 8/fs/btrfs/ioctl.c 9/fs/btrfs/ioctl.c --- 8/fs/btrfs/ioctl.c 2010-04-18 10:26:38.337947064 +0800 +++ 9/fs/btrfs/ioctl.c 2010-04-18 10:47:47.827950280 +0800 @@ -1334,8 +1334,10 @@ static int btrfs_ioctl_defrag(struct fil ret = -EPERM; goto out; } - btrfs_defrag_root(root, 0); - btrfs_defrag_root(root->fs_info->extent_root, 0); + ret = btrfs_defrag_root(root, 0); + if (ret) + goto out; + ret = btrfs_defrag_root(root->fs_info->extent_root, 0); break; case S_IFREG: if (...