[PATCH] Btrfs: do not warn_on io_ctl->cur in io_ctl_map_page

2012-11-22 Thread Wang Sheng-Hui
io_ctl_map_page is called by many functions in free-space-cache. In most scenarios, the ->cur is not null, e.g. io_ctl_add_entry. I think we'd better remove the warn_on here. Signed-off-by: Wang Sheng-Hui --- fs/btrfs/free-space-cache.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-)

[PATCH v4 24/31] btrfs: add support for read_iter and write_iter

2012-11-22 Thread Dave Kleikamp
btrfs can use generic_file_read_iter(). Base btrfs_file_write_iter() on btrfs_file_aio_write(), then have the latter call the former. Signed-off-by: Dave Kleikamp Cc: Zach Brown Cc: Chris Mason Cc: linux-btrfs@vger.kernel.org --- fs/btrfs/file.c | 42 ++

raid10 data fs full after degraded mount

2012-11-22 Thread Petr Janecek
Hello, on a fs with 4 disks, raid 10 for data, one drive was failing and has been removed. After reboot and 'mount -o degraded...', the fs looks full, even though before removal of the failed device it was almost 80% free. root@fs0:~# df -h /mnt/b Filesystem Size Used Avail Use% Mounted o

Re: per-file NOCOW in 3.7

2012-11-22 Thread Liu Bo
On Wed, Nov 21, 2012 at 06:25:11PM +0100, David Sterba wrote: > On Wed, Nov 21, 2012 at 10:48:08AM -0500, Marios Titas wrote: > > According to the tentative changelog in the wiki, 3.7 will properly > > support per-file NOCOW. I think this is misleading. In particular, it > > still does not work cor