[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 --- 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 extent_io_tree *tree, struct

[PATCH] Btrfs: check return value for kthread_run() correctly

2009-01-19 Thread Qinghuang Feng
kthread_run() returns the kthread or ERR_PTR(-ENOMEM), not NULL. Signed-off-by: Qinghuang Feng --- diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 81a3138..f718d25 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c @@ -1740,13 +1740,13 @@ struct btrfs_root *open_ctree(struct

[PATCH] Btrfs: fix bug in open_ctree()

2009-01-17 Thread Qinghuang Feng
nitialized. } 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

[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 --- 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 btrfs_congested_fn(void

Re: [PATCH] Btrfs: simplify iteration codes

2009-01-16 Thread Qinghuang Feng
On Fri, Jan 16, 2009 at 3:25 PM, Qinghuang Feng 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-btrfs"

[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 --- 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 btrfs_device

[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 --- 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 @@ -2

Re: [PATCH] btrfs & squashfs: Move btrfs and squashfsto's magic number to

2009-01-11 Thread Qinghuang Feng
On Mon, Jan 12, 2009 at 1:52 AM, Qinghuang Feng wrote: > Use the standard magic.h for btrfs and squashfs. > The patch can't be split to two pieces, otherwise it will conflict because magic.h would be modified twice. So I also send it to akpm, he must have a good idea. -- To unsubscrib

[PATCH] btrfs & squashfs: Move btrfs and squashfsto's magic number to

2009-01-11 Thread Qinghuang Feng
Use the standard magic.h for btrfs and squashfs. Signed-off-by: Qinghuang Feng --- 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 #include #include +#include #include "com