[PATCH] Prevent root_list corruption

2012-04-23 Thread Daniel J Blueman
I was seeing root_list corruption on unmount during fs resize in 3.4-rc4; add correct locking to address this. Signed-off-by: Daniel J Blueman --- fs/btrfs/relocation.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/btrfs/relocation.c b/fs/btrfs/relocation.c index 017281d..5a105a0 1

Re: [PATCH] Btrfs: complete page writeback before doing ordered extents

2012-04-23 Thread Liu Bo
On 04/24/2012 01:33 AM, Josef Bacik wrote: > We can deadlock waiting for pages to end writeback because we are doing an > allocation while hold a tree lock since the ordered extent stuff will > require tree locks. A quick easy way to fix this is to end page writeback > before we do our ordered io

Re: [PATCH] Btrfs: do not do filemap_write_and_wait_range in fsync

2012-04-23 Thread Chris Mason
On Mon, Apr 23, 2012 at 03:06:41PM -0400, Josef Bacik wrote: > We already do the btrfs_wait_ordered_range which will do this for us, so > just remove this call so we don't call it twice. Thanks, > > Signed-off-by: Josef Bacik > --- > fs/btrfs/file.c | 11 ++- > 1 files changed, 6 inse

[PATCH] Btrfs: do not do filemap_write_and_wait_range in fsync

2012-04-23 Thread Josef Bacik
We already do the btrfs_wait_ordered_range which will do this for us, so just remove this call so we don't call it twice. Thanks, Signed-off-by: Josef Bacik --- fs/btrfs/file.c | 11 ++- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c i

[PATCH] Btrfs: remove useless waiting and extra filemap work

2012-04-23 Thread Josef Bacik
In btrfs_wait_ordered_range we have been calling filemap_fdata_write() twice because compression does strange things and then waiting. Then we look up ordered extents and if we find any we will always schedule_timeout(); once and then loop back around and do it all again. We will even check to se

[PATCH] Btrfs: do not start delalloc inodes during sync

2012-04-23 Thread Josef Bacik
btrfs_start_delalloc_inodes will just walk the list of delalloc inodes and start writing them out, but it doesn't splice the list or anything so as long as somebody is doing work on the box you could end up in this section _forever_. So just remove it, it's not needed anyway since sync will start

Backup of btrfs with metadata?

2012-04-23 Thread Ken D'Ambrosio
I know this question was asked, oh, a year ago, and the answer was "No." But I'm wondering if anything's changed in the interim. Specifically, shy of "dd", is there any way to back up the files and metadata on a btrfs partition? Thanks! -Ken -- To unsubscribe from this list: send the lin

[PATCH] Btrfs: fix compile warnings in extent_io.c

2012-04-23 Thread Josef Bacik
These warnings are bogus since we will always have at least one page in an eb, but to make the compiler happy just set ret = 0 in these two cases. Thanks, Btrfs: fix compile warnings in extent_io.c These warnings are bogus since we will always have at least one page in an eb, but to make the compi

[PATCH] Btrfs: cache no acl on new inodes

2012-04-23 Thread Josef Bacik
When running compilebench I noticed we were spending some time looking up acls on new inodes, which shouldn't be happening since there were no acls. This is because when we init acls on the inode after creating them we don't cache the fact there are no acls if there aren't any. Doing this adds a l

[PATCH] Btrfs: complete page writeback before doing ordered extents

2012-04-23 Thread Josef Bacik
We can deadlock waiting for pages to end writeback because we are doing an allocation while hold a tree lock since the ordered extent stuff will require tree locks. A quick easy way to fix this is to end page writeback before we do our ordered io stuff, which works fine since we don't really need

ENOSPC with more than 6 GB free

2012-04-23 Thread Jan Engelhardt
Hi, I have here a Debian-based VM that was initially set up with a 2 GB btrfs. As the installlation of a new kernel-header failed, I updated the fs size to be 4, and later, 8 GB. However, the installation still runs into an ENOSPC error. Still I can create many (empty) files, so I am uncertai

Re: Ceph on btrfs 3.4rc

2012-04-23 Thread Christian Brunner
I decided to run the test over the weekend. The good news is, that the system is still running without performance degradation. But in the meantime I've got over 5000 WARNINGs of this kind: [330700.043557] btrfs: block rsv returned -28 [330700.043559] [ cut here ] [330700.0