btrfs: error -5 while searching for dev_stats item for device

2013-05-18 Thread Kai Krakow
Hey list! Here's another backtrace observed while deduplicating my snapshotted btrfs backup volume... https://gist.github.com/kakra/26b377cccfc66ab870e4 [58198.314804] btrfs: error -5 while searching for dev_stats item for device /dev/sdd1! [58198.314807] [ cut here ]

Re: btrfs: error -5 while searching for dev_stats item for device

2013-05-18 Thread Kai Krakow
Actually, it seems to be the result of some USB hickup: [50463.744357] device label usb-backup devid 1 transid 11907 /dev/sdd1 [58191.598683] xhci_hcd :05:00.0: Timeout while waiting for address device command [58196.801878] xhci_hcd :05:00.0: Timeout while waiting for address device

[GIT PULL] Btrfs updates

2013-05-18 Thread Chris Mason
Hi Linus, Please pull my for-linus branch: git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs.git for-linus Miao Xie has been very busy, fixing races and enospc problems and many other small but important pieces. Alexandre Oliva discovered some problems with how our error handling

[PATCH V2] Btrfs-progs: fix missing recow roots when making btrfs filesystem

2013-05-18 Thread Wang Shilong
From: Wang Shilong wangsl-f...@cn.fujitsu.com When making btrfs filesystem. we firstly write root leaf to specified filed, and then we recow the root. If we don't recow, some trees are not in the correct block group. Steps to reproduce: dd if=/dev/zero of=test.img bs=1M count=100

[PATCH] Btrfs-progs: fix compile warning in btrfs_free_block_groups()

2013-05-18 Thread Wang Shilong
From: Wang Shilong wangsl-f...@cn.fujitsu.com See the warning in i386 machine: extent-tree.c: In function ‘btrfs_free_block_groups’: extent-tree.c:3190:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] Signed-off-by: Wang Shilong wangsl-f...@cn.fujitsu.com ---

[PATCH V2] Btrfs-progs: fix compile warning in btrfs_free_block_groups()

2013-05-18 Thread Wang Shilong
From: Wang Shilong wangsl-f...@cn.fujitsu.com extent-tree.c: In function 'btrfs_free_block_groups': extent-tree.c:3190:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] Signed-off-by: Wang Shilong wangsl-f...@cn.fujitsu.com --- v1-v2: fix encoding error in