[PATCH] Btrfs: remove redundant codes for split_state()

2009-02-09 Thread Qinghuang Feng
These two lines are needless, remove them. Signed-off-by: Qinghuang Feng qhfeng.ker...@gmail.com --- diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index 37d43b5..ebe6b29 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c @@ -415,8 +415,6 @@ static int split_state(struct

[PATCH] Btrfs: fix bug in open_ctree()

2009-01-17 Thread Qinghuang Feng
. } fail: btrfs_close_devices(fs_info-fs_devices);// ! btrfs_mapping_tree_free(fs_info-mapping_tree);// ! kfree(extent_root); kfree(tree_root); bdi_destroy(fs_info-bdi);// ! ... ) Signed-off-by: Qinghuang Feng qhfeng.ker...@gmail.com --- diff

Re: [PATCH] Btrfs: simplify iteration codes

2009-01-16 Thread Qinghuang Feng
On Fri, Jan 16, 2009 at 3:25 PM, Qinghuang Feng qhfeng.ker...@gmail.com wrote: merge list_for_each and list_entry to list_for_each_entry. Please ignore this patch, I will resend a patch to cleanup all the similar codes in btrfs. -- To unsubscribe from this list: send the line unsubscribe linux

[PATCH resend] Btrfs: simplify iteration codes

2009-01-16 Thread Qinghuang Feng
Merge list_for_each* and list_entry to list_for_each_entry* Signed-off-by: Qinghuang Feng qhfeng.ker...@gmail.com --- diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 81a3138..aedfcec 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c @@ -1136,7 +1136,6 @@ static int

[PATCH] Btrfs: simplify iteration codes

2009-01-15 Thread Qinghuang Feng
merge list_for_each and list_entry to list_for_each_entry. Signed-off-by: Qinghuang Feng qhfeng.ker...@gmail.com --- diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index b187b53..70f0248 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c @@ -104,10 +104,8 @@ static noinline struct

[PATCH] BTRFS: Mark '__init' for btrfs_init_cachep, btrfs_init_sysfs,btrfs_interface_init

2009-01-14 Thread Qinghuang Feng
There functions are only called by 'static int __init init_btrfs_fs(void)', so also mark them as '__init'. Signed-off-by: Qinghuang Feng qhfeng.ker...@gmail.com --- diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index eee060f..7e03ec8 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h

[PATCH] btrfs squashfs: Move btrfs and squashfsto's magic number to linux/magic.h

2009-01-11 Thread Qinghuang Feng
Use the standard magic.h for btrfs and squashfs. Signed-off-by: Qinghuang Feng qhfeng.ker...@gmail.com --- diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index 0a14b49..7256cf2 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c @@ -38,6 +38,7 @@ #include linux/namei.h #include linux