Re: [PATCH] btrfs: Cleanup for using BTRFS_SETGET_STACK instead of raw convert

2013-07-08 Thread Qu Wenruo
于 2013年07月08日 21:24, David Sterba 写道: On Fri, Jul 05, 2013 at 10:01:30AM +0800, Qu Wenruo wrote: --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h @@ -2807,6 +2846,14 @@ static inline unsigned long btrfs_leaf_data(struct extent_buffer *l) /* struct btrfs_file_extent_item */ BTRFS_SETGET_FUN

Re: [PATCH] btrfs: Cleanup for using BTRFS_SETGET_STACK instead of raw convert

2013-07-08 Thread David Sterba
On Fri, Jul 05, 2013 at 10:01:30AM +0800, Qu Wenruo wrote: > --- a/fs/btrfs/ctree.h > +++ b/fs/btrfs/ctree.h > @@ -2807,6 +2846,14 @@ static inline unsigned long btrfs_leaf_data(struct > extent_buffer *l) > > /* struct btrfs_file_extent_item */ > BTRFS_SETGET_FUNCS(file_extent_type, struct btr

[PATCH] btrfs: Cleanup for using BTRFS_SETGET_STACK instead of raw convert

2013-07-04 Thread Qu Wenruo
Some codes still use the cpu_to_lexx instead of the BTRFS_SETGET_STACK_FUNCS declared in ctree.h. Also added some BTRFS_SETGET_STACK_FUNCS for btrfs_header btrfs_timespec and other structures. Signed-off-by: Qu Wenruo Reviewed-by: Miao Xie --- fs/btrfs/check-integrity.c | 110 +