[PATCH] btrfs-progs: delete unused function get_mountpt

2013-03-31 Thread Anand Jain
and get_btrfs_mount has replaced it Signed-off-by: Anand Jain --- utils.c | 35 --- 1 file changed, 35 deletions(-) diff --git a/utils.c b/utils.c index b9b675d..0a4a971 100644 --- a/utils.c +++ b/utils.c @@ -976,41 +976,6 @@ out_mntloop_err: return ret;

Re: BTRFS error in __btrfs_inc_extent_ref:1935: Object already exists

2013-03-31 Thread Roman Mamedov
Hello, After a reboot the filesystem now does not mount at all, with similar messages. [ 66.874267] Btrfs loaded [ 66.876222] device label p2 devid 1 transid 22985 /dev/sda2 [ 66.878175] btrfs: use lzo compression [ 66.878185] btrfs: disk space caching is enabled [ 79.112680] --

BTRFS error in __btrfs_inc_extent_ref:1935: Object already exists

2013-03-31 Thread Roman Mamedov
Hello, Trying to balance a 2TB filesystem on the 3.8.5 kernel: Label: 'p2' uuid: 01f6cc8b-d305-40e1-bac8-8fdd548f611e Total devices 1 FS bytes used 1.32TB devid1 size 1.80TB used 1.37TB path /dev/sda2 System: total=4.00MB, used=156.00KB Data+Metadata: total=1.37TB, used=1.32

Re: [BUG] btrfs quota

2013-03-31 Thread Wang Shilong
Hello Arne, However, I remember that i have hit this panic in several kernel version. And i will double check it tomorrow when i am in the work.. If possible, i will send you the message from dmesg. Thanks, Wang > Hello Wang, > > On 03/31/13 03:44, Wang Shilong wrote: >> Hello Arne, Jan, >> >

Re: [PATCH] Btrfs: cleanup to remove reduplicate code in iterate_extent_inode()

2013-03-31 Thread Wang Shilong
Just ignore this patch, i have merge the correct modification of this patch to the [patch V2] fix double free in the iterate_extent_inodes(). Thanks, Wang > On 03/30/13 12:55, Wang Shilong wrote: >> >> >>> On 03/29/13 14:42, Wang Shilong wrote: From: Wang Shilong Just remove t

[PATCH V2] Btrfs: fix double free in the iterate_extent_inodes()

2013-03-31 Thread Wang Shilong
From: Wang Shilong If btrfs_find_all_roots() fails, 'roots' has been freed or 'roots' fails to allocate. We don't need to free it outside btrfs_find_all_roots() again.Fix it. Signed-off-by: Wang Shilong --- Changelog: V1->v2: remove reduplicate code that set 'roots' to be NULL --- fs/b

Re: [BUG] btrfs quota

2013-03-31 Thread Wang Shilong
Hello Arne, > Hello Wang, > > On 03/31/13 03:44, Wang Shilong wrote: >> Hello Arne, Jan, >> >> When i run stresstest with quota enabled, i hit a panic where >> btrfs_find_all_roots() is called. Would you please double check it. >> > > On what kernel version do you hit this (git commit id prefe

[PATCH V3] Btrfs: kill some BUG_ONs() in the find_parent_nodes()

2013-03-31 Thread Wang Shilong
From: Wang Shilong The reason that BUG_ON() happens in these places is just because of ENOMEM. We try ro return ENOMEM rather than trigger BUG_ON(), the caller will abort the transaction thus avoiding the kernel panic. Signed-off-by: Wang Shilong Reviewed-by: Miao Xie Reviewed-by: Jan Schmidt

Re: [BUG] btrfs quota

2013-03-31 Thread Arne Jansen
Hello Wang, On 03/31/13 03:44, Wang Shilong wrote: > Hello Arne, Jan, > > When i run stresstest with quota enabled, i hit a panic where > btrfs_find_all_roots() is called. Would you please double check it. > On what kernel version do you hit this (git commit id preferred)? Can you send us the