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
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
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
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
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"
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
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
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
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