[PATCH 2/6] btrfs: try to reclaim some space when chunk allocation fails

2010-12-22 Thread Miao Xie
We cannot write data into files when when there is tiny space in the filesystem. Reproduce steps: # mkfs.btrfs /dev/sda1 # mount /dev/sda1 /mnt # dd if=/dev/zero of=/mnt/tmpfile0 bs=4K count=1 # dd if=/dev/zero of=/mnt/tmpfile1 bs=4K count=99 (fill the filesystem) # umount

Re: [PATCH 2/6] btrfs: try to reclaim some space when chunk allocation fails

2010-12-22 Thread Josef Bacik
On Wed, Dec 22, 2010 at 06:47:20PM +0800, Miao Xie wrote: We cannot write data into files when when there is tiny space in the filesystem. Reproduce steps: # mkfs.btrfs /dev/sda1 # mount /dev/sda1 /mnt # dd if=/dev/zero of=/mnt/tmpfile0 bs=4K count=1 # dd if=/dev/zero