[PATCH] Btrfs: add missing error checks to add_data_references

2013-07-13 Thread Filipe David Borba Manana
The function relocation.c:add_data_references() was not checking if all calls to __add_tree_block() and find_data_references() were succeeding or not. Signed-off-by: Filipe David Borba Manana fdman...@gmail.com --- fs/btrfs/relocation.c |7 ++- 1 file changed, 6 insertions(+), 1

[PATCH] Btrfs: set qgroup_ulist to be null after calling ulist_free()

2013-07-13 Thread Wang Shilong
From: Wang Shilong wangsl.f...@cn.fujitsu.com We call ulist_free(qgroup_ulist) in btrfs_free_qgroup_config(), and btrfs_free_qgroup_config() may be called in two cases: (1)umount filesystem (2)disabling quota However, if we firstly disable quota and then umount filesystem, a double free

[PATCH v3] Btrfs: optimize btrfs_lookup_extent_info()

2013-07-13 Thread Filipe David Borba Manana
If we're looking for a metadata item in the tree and the search fails with return value of 1, and the slot doesn't point to the first item in the leaf, check if the previous item in the leaf corresponds to an extent item for the same object id - if it does, then don't do another tree search to get

Re: btrfs filesystem balance /mnt/btrfs - segmentation fault (kernel BUG at fs/btrfs/relocation.c:3296!)

2013-07-13 Thread Filipe David Manana
On Sat, Jul 13, 2013 at 5:08 AM, Tomasz Chmielewski man...@wpkg.org wrote: I've enabled extended inode refs and skinny metadata extent refs with btrfstune. Then, I've tried running btrfs filesystem balance - unfortunately it segfaulted. (not sure if I should run balance operation after

Troublesome failure mode and recovery

2013-07-13 Thread Jérôme Carretero
Hi there, Experiencing an broken FS in a state I haven't seen before. I was running linux-3.10 on my laptop, which I had tried to put to sleep with an external btrfs partition attached. On resume, the external partition was lost. I was able to unmount it, despite many kernel warnings. Then I

mkfs.btrfs out of memory failure on lvm2 thinp volume

2013-07-13 Thread Chris Murphy
https://bugzilla.redhat.com/show_bug.cgi?id=984236 kernel-3.10.0-1.fc20.x86_64 Should it be possible to mkfs.btrfs on a virtual LV backed by LVM thinp? I can successfully create an XFS fs on the same virtual device. The virtual LV is 16TB in size, I haven't tried anything smaller yet to see if