search for: btrfs_run_defrag_inodes

Displaying 5 results from an estimated 5 matches for "btrfs_run_defrag_inodes".

2012 May 24
2
[PATCH] Btrfs: fix the same inode id problem when doing auto defragment
...t; else return entry; } if (next) { - while (parent && ino > entry->ino) { + while (parent && __compare_inode_defrag(&tmp, entry) > 0) { parent = rb_next(parent); entry = rb_entry(parent, struct inode_defrag, rb_node); } @@ -202,6 +222,7 @@ int btrfs_run_defrag_inodes(struct btrfs_fs_info *fs_info) struct btrfs_key key; struct btrfs_ioctl_defrag_range_args range; u64 first_ino = 0; + u64 root_objectid = 0; int num_defrag; int defrag_batch = 1024; @@ -214,11 +235,14 @@ int btrfs_run_defrag_inodes(struct btrfs_fs_info *fs_info) n = NULL; /* fin...
2012 Apr 26
7
[PATCH 2/4] Btrfs: fix deadlock on sb->s_umount when doing umount
...2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 20196f4..59b566d 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c @@ -3056,6 +3056,9 @@ int close_ctree(struct btrfs_root *root) /* clear out the rbtree of defraggable inodes */ btrfs_run_defrag_inodes(fs_info); + /* sync all the dirty pages which are made by auto defrag */ + sync_filesystem(fs_info->sb); + /* * Here come 2 situations when btrfs is broken to flip readonly: * diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index 2b35f8d..e533ab3 100644 --- a/fs/btrfs/exte...
2013 Jun 10
1
btrfs-cleaner Blocked on xfstests 068
...[<ffffffff81118593>] ? find_inode+0x93/0xbe [ 413.409157] [<ffffffff8161e3e4>] schedule+0x64/0x66 [ 413.409157] [<ffffffff8110525c>] __sb_start_write+0x9a/0xf0 [ 413.409157] [<ffffffff8104e2d7>] ? remove_wait_queue+0x3a/0x3a [ 413.409157] [<ffffffffa019018e>] btrfs_run_defrag_inodes+0x20a/0x327 [btrfs] [ 413.409157] [<ffffffffa017a6c1>] cleaner_kthread+0x95/0x122 [btrfs] [ 413.409157] [<ffffffffa017a62c>] ? transaction_kthread+0x1a0/0x1a0 [btrfs] [ 413.409157] [<ffffffff8104da7c>] kthread+0xba/0xc2 [ 413.409157] [<ffffffff8104d9c2>] ? kthread_fr...
2011 Oct 04
68
[patch 00/65] Error handling patchset v3
Hi all - Here''s my current error handling patchset, against 3.1-rc8. Almost all of this patchset is preparing for actual error handling. Before we start in on that work, I''m trying to reduce the surface we need to worry about. It turns out that there is a ton of code that returns an error code but never actually reports an error. The patchset has grown to 65 patches. 46 of them
2012 Apr 20
44
Ceph on btrfs 3.4rc
After running ceph on XFS for some time, I decided to try btrfs again. Performance with the current "for-linux-min" branch and big metadata is much better. The only problem (?) I''m still seeing is a warning that seems to occur from time to time: [87703.784552] ------------[ cut here ]------------ [87703.789759] WARNING: at fs/btrfs/inode.c:2103