[PATCH] Btrfs: fix wrong check for btrfs_force_chunk_alloc()

2015-04-11 Thread Wang Shilong
btrfs_force_chunk_alloc() return 1 for allocation chunk successfully. This problem exists since commit c87f08ca4. With this patch, we might fix some enospc problems for balances. Signed-off-by: Wang Shilong --- fs/btrfs/relocation.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --

Re: btrfs balance {,meta}data to raid5 not working?

2015-04-11 Thread Hugo Mills
On Sat, Apr 11, 2015 at 10:47:33PM +0200, Philip Seeger wrote: > A two-drive RAID5? Try 3 drives (btrfs dev add > /mountpoint first). 2-drive RAID-5 should work on btrfs. It's functionally equivalent to RAID-1. Hugo. > On 04/11/2015 12:10 AM, Piotr Szymaniak wrote: > > I tried today to ba

Re: btrfs balance {,meta}data to raid5 not working?

2015-04-11 Thread Philip Seeger
A two-drive RAID5? Try 3 drives (btrfs dev add /mountpoint first). On 04/11/2015 12:10 AM, Piotr Szymaniak wrote: > I tried today to balance two drive btrfs raid1 to two drive btrfs raid5 -- Philip -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a mes

Big disk space usage difference, even after defrag, on identical data

2015-04-11 Thread Gian-Carlo Pascutto
Linux mozwell 3.19.0-trunk-amd64 #1 SMP Debian 3.19.1-1~exp1 (2015-03-08) x86_64 GNU/Linux btrfs-progs v3.19.1 I have a btrfs volume that's been in use for a week or 2. It has about ~560G of uncompressible data (video files, tar.xz, git repos, ...) and ~200G of data that compresses 2:1 with LZO (P

Re: [PATCH 1/1] btrfs: Align EOF length to block in extent_same

2015-04-11 Thread Matt Robinson
Hi All, As David hasn't got back to me I'm guessing that he is too busy with other things at present. If anyone else is able to spare the time to review my patch and give me feedback that would be very much appreciated. Many Thanks, Matt On 3 March 2015 at 00:27, Zygo Blaxell wrote: > > I seco

Re: [PATCH RFC 1/3] vfs: add copy_file_range syscall and vfs helper

2015-04-11 Thread Jeff Layton
On Fri, 10 Apr 2015 20:24:06 -0400 Trond Myklebust wrote: > On Fri, Apr 10, 2015 at 8:02 PM, Zach Brown wrote: > > On Fri, Apr 10, 2015 at 06:36:41PM -0400, Trond Myklebust wrote: > >> On Fri, Apr 10, 2015 at 6:00 PM, Zach Brown wrote: > > > >> > + > >> > +/* > >> > + * copy_file_range() differ