PATCH] Do not limit RAID1 and DUP transfer length to one stripe

2009-12-17 Thread jim owens
The 65k stripe length should be ignored as the stripes are physically contiguous on disk so transfers can span stripes. Signed-off-by: jim owens jow...@hp.com --- fs/btrfs/volumes.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/btrfs/volumes.c

[PATCH] Btrfs: make set/get functions for the super compat_ro flags use compat_ro

2009-12-17 Thread Josef Bacik
Our set/get functions for compat_ro_flags actually look at compat_flags. This will mess any attempt to use compat flags up. The fix is obvious. Thanks, Signed-off-by: Josef Bacik jo...@redhat.com --- fs/btrfs/ctree.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git

Re: [PATCH] Btrfs: set a compat flag when setting default subvol

2009-12-17 Thread Chris Mason
On Thu, Dec 17, 2009 at 04:40:24PM -0500, Josef Bacik wrote: This is just to mark the fs that it's been tinkered with to set the default subvolume. It's a compatible change because older kernels will just ignore the default setting and mount the same thing they always have. Thanks, I

[PATCH] __btrfs_map_block should not set length more than input length.

2009-12-17 Thread jim owens
Returning a value greater than the caller's is ugly and prone to dangerous future coding mistakes. Signed-off-by: jim owens jow...@hp.com --- fs/btrfs/extent-tree.c |3 --- fs/btrfs/inode.c |5 ++--- fs/btrfs/volumes.c |9 + 3 files changed, 7 insertions(+), 10

[GIT PULL] Btrfs updates for 2.6.33-git

2009-12-17 Thread Chris Mason
Hello everyone, This btrfs update is mostly a collection of fixes. Josef has the snapshot-supported yum update code pending, but I wanted to give that some more time to cook before we send it out. Linus please pull the for-linus branch of the btrfs-unstable tree

[PATCH] Btrfs: set a incompat flag when setting default subvol

2009-12-17 Thread Josef Bacik
Older kernels would generally be able to still mount the filesystem with the default subvolume set, but it would result in a different volume being mounted, which could be an even more unpleasant suprise for users. So if you set your default subvolume, you can't go back to older kernels. Thanks,

Btrfs: btrfs_discard_extent must use WRITE with btrfs_map_block.

2009-12-17 Thread jim owens
WRITE is needed on btrfs_map_block() to fetch all raid stripes, READ only returns one device and we want to discard all copies. Signed-off-by: jim owens jow...@hp.com --- fs/btrfs/extent-tree.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/btrfs/extent-tree.c

[PATCH] btrfs: Simplify offset calculation method for ctree.h

2009-12-17 Thread Zhaolei
Use simple struct operation instead of address calculation. Signed-off-by: Zhao Lei zhao...@cn.fujitsu.com --- fs/btrfs/ctree.h | 46 ++ 1 files changed, 14 insertions(+), 32 deletions(-) diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index

Re: Re: [PATCH] btrfs: Simplify offset calculation method for ctree.h

2009-12-17 Thread sniper
2009/12/18 Zhaolei zhao...@cn.fujitsu.com: sniper wrote: No, many pointers in btrfs function arguments are not pointing to an absolute address, but relative to the start address of extent. Take following function as example, argument inode_item is an offset value to the beginning of leaf. So