Re: [PATCH] Btrfs: release space on error in page_mkwrite

2012-01-12 Thread David Sterba
On Wed, Jan 11, 2012 at 03:27:09PM +0100, David Sterba wrote: On Tue, Jan 10, 2012 at 02:20:18PM -0500, Josef Bacik wrote: WARNING: at fs/btrfs/extent-tree.c:7283 btrfs_free_block_groups+0x25b/0x370 appeared within minutes. Sorry, I spoke too soon, the test was running overnight and the

Re: [PATCH 16/21] Btrfs: recover balance on mount

2012-01-12 Thread David Sterba
On Fri, Jan 06, 2012 at 04:31:04PM +0200, Ilya Dryomov wrote: +static int restriper_kthread(void *data) you've changed restripe - balance in some places, I'm not sure if you want to distinguish them sometimes, like the kthread worker name here +{ ... +} + +int btrfs_recover_balance(struct

Re: [PATCH 16/21] Btrfs: recover balance on mount

2012-01-12 Thread Ilya Dryomov
On Thu, Jan 12, 2012 at 03:00:31PM +0100, David Sterba wrote: On Fri, Jan 06, 2012 at 04:31:04PM +0200, Ilya Dryomov wrote: +static int restriper_kthread(void *data) you've changed restripe - balance in some places, I'm not sure if you want to distinguish them sometimes, like the kthread

[PATCH 4/4] fix indentation

2012-01-12 Thread Danny Kukawka
Fixed indentation, replace spaces with tabs. --- btrfslabel.c | 52 ++-- 1 files changed, 26 insertions(+), 26 deletions(-) diff --git a/btrfslabel.c b/btrfslabel.c index 29b00bf..50050ec 100644 --- a/btrfslabel.c +++ b/btrfslabel.c @@ -48,45

[PATCH 3/4] fix some compiler warnings from cgcc

2012-01-12 Thread Danny Kukawka
Fixed some compiler warnings from cgcc. --- btrfs.c| 12 ++-- btrfslabel.h |3 ++- extent-cache.c |2 +- extent-tree.c |2 +- extent_io.c|2 +- 5 files changed, 11 insertions(+), 10 deletions(-) diff --git a/btrfs.c b/btrfs.c index 1def354..0f4b8b7 100644

[PATCH 1/4] fix segfaults from bnc#710486

2012-01-12 Thread Danny Kukawka
Fixed segfaults from bnc#710486 due to unchecked usage of return value from open_ctree(). --- btrfs-image.c|5 + btrfs-select-super.c |4 +++- btrfslabel.c |8 btrfstune.c |5 + dir-test.c | 11 +++ find-root.c

[PATCH 0/4] btrfs-progs: some patches

2012-01-12 Thread Danny Kukawka
Patches to fix some possible segfaults, fix some compiler warnings and indention. They are against: git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-progs.git @David: I've separated your changes to my patch for the SUSE package into an own patch and attached it. Danny

[PATCH 2/4] return error code from change/get_label_unmounted

2012-01-12 Thread Danny Kukawka
From: David Sterba dste...@suse.cz Return error code from change/get_label_unmounted caused by caused by open_ctree() --- btrfslabel.c | 16 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/btrfslabel.c b/btrfslabel.c index 2e5d539..29b00bf 100644 ---

Re: [3.2-rc7] slowdown, warning + oops creating lots of files

2012-01-12 Thread Christian Brunner
2012/1/7 Christian Brunner c...@muc.de: 2012/1/5 Chris Mason chris.ma...@oracle.com: On Fri, Jan 06, 2012 at 07:12:16AM +1100, Dave Chinner wrote: On Thu, Jan 05, 2012 at 02:45:00PM -0500, Chris Mason wrote: On Thu, Jan 05, 2012 at 01:46:57PM -0500, Chris Mason wrote: Unfortunately,

Re: [PATCH 00/11] Btrfs: some patches for 3.3

2012-01-12 Thread Chris Mason
On Wed, Jan 11, 2012 at 01:51:42PM +0800, Li Zefan wrote: The biggest one is a fix for fstrim, and there's a fix for on-disk free space cache. Others are small fixes and cleanups. Thanks Li, I've merged all of these in. -chris -- To unsubscribe from this list: send the line unsubscribe

[PATCH] Btrfs: don't call btrfs_throttle in file write

2012-01-12 Thread Josef Bacik
Btrfs_throttle will make us wait if there is a currently committing transaction until we can open new transactions, which is ridiculous since we don't actually start any transactions within the file write path anyway, so all this does is introduce big latencies if we have a sync/fsync heavy

Re: btrfs-related kernel oops due to media error

2012-01-12 Thread Niels de Carpentier
Hi, One of my disks, partitioned into a single btrfs partition, is showing media errors. The problem is that these errors lead to kernel panic from btrfs - that make the filesystem unusable until reboot - and therefore it is very hard for me to do a full backup of the data prior to changing

Re: revert to static snapshot on reboot

2012-01-12 Thread Niels de Carpentier
The plan that occurs to me is to make a snapshot of the system in the state that I want to always boot. Then, I would rewrite the init script in the initrd to (a) delete any old tmp copy of the snapshot; (b) copy the static snapshot to a tmp copy; (c) mount the tmp copy. That's a little

Re: revert to static snapshot on reboot

2012-01-12 Thread Hugo Mills
On Mon, Jan 09, 2012 at 04:21:31PM +0100, Niels de Carpentier wrote: The plan that occurs to me is to make a snapshot of the system in the state that I want to always boot. Then, I would rewrite the init script in the initrd to (a) delete any old tmp copy of the snapshot; (b) copy the

Re: revert to static snapshot on reboot

2012-01-12 Thread Niels de Carpentier
On Mon, Jan 09, 2012 at 04:21:31PM +0100, Niels de Carpentier wrote: The plan that occurs to me is to make a snapshot of the system in the state that I want to always boot. Then, I would rewrite the init script in the initrd to (a) delete any old tmp copy of the snapshot; (b) copy the

Re: btrfs-related kernel oops due to media error

2012-01-12 Thread Vincent Vanackere
On Tue, Jan 10, 2012 at 00:01, Niels de Carpentier ni...@decarpentier.com mailto:ni...@decarpentier.com wrote: Hi, One of my disks, partitioned into a single btrfs partition, is showing media errors. The problem is that these errors lead to kernel panic from

Re: [RFC PATCH v2 0/3] Btrfs: apply the Probabilistic Skiplist on btrfs

2012-01-12 Thread Andi Kleen
Liu Bo liubo2...@cn.fujitsu.com writes: Here we choose extent_map firstly, since it is a read mostly thing, and the change is quite direct, all we need to do is a) to replace rbtree with skiplist, b) to add rcu support. And more details are in patch 2 and patch 3. I've done some simple

Updated btrfs/crypto snappy interface ready for merging

2012-01-12 Thread Andi Kleen
Here's a slightly updated version of the BTRFS snappy interface. snappy is a faster compression algorithm that provides similar compression as LZO, but generally better performance. This version has: - Ported to latest tree - Extensive testing and benchmarking (in its 3.0 based incarnation) - A

[PATCH 2/3] BTRFS: Add snappy support v2

2012-01-12 Thread Andi Kleen
From: Andi Kleen a...@linux.intel.com Add support in btrfs for snappy compression. This is generally a faster compressor than LZO (except for higher memory usage) with comparable compression and should imho replace it. This is based on the lzo code with minor modifications. This has been tested

[PATCH 1/3] Add the snappy-c compressor to lib v2

2012-01-12 Thread Andi Kleen
From: Andi Kleen a...@linux.intel.com This is a C port of the google snappy compressor. It has roughly comparable compression to LZO, but is significantly faster on many file types. For example it beats all other compressors on already compressed data. I ported the original C++ code over to C

[PATCH 3/3] Add snappy interface to crypto API

2012-01-12 Thread Andi Kleen
From: Andi Kleen a...@linux.intel.com Mainly so that ubifs can use it. Acked-by: Herbert Xu herb...@gondor.apana.org.au Signed-off-by: Andi Kleen a...@linux.intel.com --- crypto/Kconfig |9 + crypto/Makefile |1 + crypto/snappy.c | 99

Looking for a speaker to talk about btrfs to Seattle User Group

2012-01-12 Thread Ski Kacoroski
Hi, The Seattle Area System Administrators Guild, http://sasag/org, is doing a series of talks on filesystems and are looking for a speaker who can tell us how btrfs works and its future. Our meetings are the second Thursday of each month on the Univ of Wash campus. If anyone is interested

Re: [RFC PATCH v2 0/3] Btrfs: apply the Probabilistic Skiplist on btrfs

2012-01-12 Thread Liu Bo
On 01/13/2012 05:28 AM, Andi Kleen wrote: Liu Bo liubo2...@cn.fujitsu.com writes: Here we choose extent_map firstly, since it is a read mostly thing, and the change is quite direct, all we need to do is a) to replace rbtree with skiplist, b) to add rcu support. And more details are in patch

Re: Updated btrfs/crypto snappy interface ready for merging

2012-01-12 Thread Jaromir Zdrazil
Hi. Thank you for the job. Could you please share the output of the testing and give us more info about the crypto? Thank you! Jaromir Původní zpráva Od: Andi Kleen a...@firstfloor.org Předmět: Updated btrfs/crypto snappy interface ready for merging Datum:

Re: [RFC PATCH v2 0/3] Btrfs: apply the Probabilistic Skiplist on btrfs

2012-01-12 Thread Dave Chinner
On Fri, Jan 13, 2012 at 10:18:06AM +0800, Liu Bo wrote: On 01/13/2012 05:28 AM, Andi Kleen wrote: Liu Bo liubo2...@cn.fujitsu.com writes: Here we choose extent_map firstly, since it is a read mostly thing, and the change is quite direct, all we need to do is a) to replace rbtree with