tristan
2010-May-06 07:04 UTC
[Ocfs2-devel] [PATCH 0/4] Patches series for optimization of truncating and punching-hole.
Hi Joel, Following 4 patches are the entire patches series of truncating and punching-holes atop your latest merge-window branch. And it survived all my testcases on hand. Tristan.
Joel Becker
2010-May-10 19:47 UTC
[Ocfs2-devel] [PATCH 0/4] Patches series for optimization of truncating and punching-hole.
On Thu, May 06, 2010 at 03:04:48PM +0800, tristan wrote:> Following 4 patches are the entire patches series of truncating and > punching-holes atop your latest merge-window branch. > > And it survived all my testcases on hand.Tristan, Thank you for sending the new series. It looks good functionally. I replied to the first patch with a couple of cleanups. Please use the --compose option to git-send-email to create your [PATCH 0/x] emails. This makes them thread in our mailboxes better ;-) Mark, can I get your evaluation of this patch series before I push it to merge-window? Joel -- "You don't make the poor richer by making the rich poorer." - Sir Winston Churchill Joel Becker Principal Software Developer Oracle E-mail: joel.becker at oracle.com Phone: (650) 506-8127
tristan
2010-May-11 01:27 UTC
[Ocfs2-devel] [PATCH 0/4] Patches series for optimization of truncating and punching-hole.
Joel Becker wrote:> On Thu, May 06, 2010 at 03:04:48PM +0800, tristan wrote: >> Following 4 patches are the entire patches series of truncating and >> punching-holes atop your latest merge-window branch. >> >> And it survived all my testcases on hand. > > Tristan, > Thank you for sending the new series. It looks good > functionally. I replied to the first patch with a couple of cleanups.All cleanups make sense!> Please use the --compose option to git-send-email to create your > [PATCH 0/x] emails. This makes them thread in our mailboxes better ;-)Joel, Thank you for teaching me this, it really helps, I usually hand-edit the [patch 0/x] before;-(> Mark, can I get your evaluation of this patch series before I > push it to merge-window? > > Joel >
Tristan Ye
2010-May-11 08:10 UTC
[Ocfs2-devel] [PATCH 0/4] Patches series for optimization of truncating and punching-hole.
Hi Joel, Following 4 patches are the latest patches series of truncating and punching-holes atop 'merge-window' branch, with your recent comments being applied. Tristan.
Tristan Ye
2010-May-11 08:10 UTC
[Ocfs2-devel] [PATCH 3/4] Ocfs2: Make ocfs2_find_cpos_for_left_leaf() public.
The original idea to pull ocfs2_find_cpos_for_left_leaf() out of alloc.c is to benefit punching-holes optimization patch, it however, can also be referred by other funcs in the future who want to do the same job. Signed-off-by: Tristan Ye <tristan.ye at oracle.com> --- fs/ocfs2/alloc.c | 4 ++-- fs/ocfs2/alloc.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/fs/ocfs2/alloc.c b/fs/ocfs2/alloc.c index 0cb4248..7e9cb75 100644 --- a/fs/ocfs2/alloc.c +++ b/fs/ocfs2/alloc.c @@ -2209,8 +2209,8 @@ out: * * Will return zero if the path passed in is already the leftmost path. */ -static int ocfs2_find_cpos_for_left_leaf(struct super_block *sb, - struct ocfs2_path *path, u32 *cpos) +int ocfs2_find_cpos_for_left_leaf(struct super_block *sb, + struct ocfs2_path *path, u32 *cpos) { int i, j, ret = 0; u64 blkno; diff --git a/fs/ocfs2/alloc.h b/fs/ocfs2/alloc.h index 4fb9882..a55a27b 100644 --- a/fs/ocfs2/alloc.h +++ b/fs/ocfs2/alloc.h @@ -319,6 +319,8 @@ int ocfs2_journal_access_path(struct ocfs2_caching_info *ci, struct ocfs2_path *path); int ocfs2_find_cpos_for_right_leaf(struct super_block *sb, struct ocfs2_path *path, u32 *cpos); +int ocfs2_find_cpos_for_left_leaf(struct super_block *sb, + struct ocfs2_path *path, u32 *cpos); int ocfs2_find_subtree_root(struct ocfs2_extent_tree *et, struct ocfs2_path *left, struct ocfs2_path *right); -- 1.5.5
Tristan Ye
2010-May-11 09:53 UTC
[Ocfs2-devel] [PATCH 0/4] Patches series for optimization of truncating and punching-hole.
Hi Joel, Following 4 patches are the latest patches series of truncating and punching-holes atop 'merge-window' branch, with your recent comments being applied. Tristan.
Tristan Ye
2010-May-11 09:53 UTC
[Ocfs2-devel] [PATCH 3/4] Ocfs2: Make ocfs2_find_cpos_for_left_leaf() public.
The original idea to pull ocfs2_find_cpos_for_left_leaf() out of alloc.c is to benefit punching-holes optimization patch, it however, can also be referred by other funcs in the future who want to do the same job. Signed-off-by: Tristan Ye <tristan.ye at oracle.com> --- fs/ocfs2/alloc.c | 4 ++-- fs/ocfs2/alloc.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/fs/ocfs2/alloc.c b/fs/ocfs2/alloc.c index 0cb4248..7e9cb75 100644 --- a/fs/ocfs2/alloc.c +++ b/fs/ocfs2/alloc.c @@ -2209,8 +2209,8 @@ out: * * Will return zero if the path passed in is already the leftmost path. */ -static int ocfs2_find_cpos_for_left_leaf(struct super_block *sb, - struct ocfs2_path *path, u32 *cpos) +int ocfs2_find_cpos_for_left_leaf(struct super_block *sb, + struct ocfs2_path *path, u32 *cpos) { int i, j, ret = 0; u64 blkno; diff --git a/fs/ocfs2/alloc.h b/fs/ocfs2/alloc.h index 4fb9882..a55a27b 100644 --- a/fs/ocfs2/alloc.h +++ b/fs/ocfs2/alloc.h @@ -319,6 +319,8 @@ int ocfs2_journal_access_path(struct ocfs2_caching_info *ci, struct ocfs2_path *path); int ocfs2_find_cpos_for_right_leaf(struct super_block *sb, struct ocfs2_path *path, u32 *cpos); +int ocfs2_find_cpos_for_left_leaf(struct super_block *sb, + struct ocfs2_path *path, u32 *cpos); int ocfs2_find_subtree_root(struct ocfs2_extent_tree *et, struct ocfs2_path *left, struct ocfs2_path *right); -- 1.5.5
Tristan Ye
2010-May-11 09:54 UTC
[Ocfs2-devel] [PATCH 0/4] Patches series for optimization of truncating and punching-hole.
Hi Joel, Following 4 patches are the latest patches series of truncating and punching-holes atop 'merge-window' branch, with your recent comments being applied. Tristan.
Tristan Ye
2010-May-11 09:54 UTC
[Ocfs2-devel] [PATCH 3/4] Ocfs2: Make ocfs2_find_cpos_for_left_leaf() public.
The original idea to pull ocfs2_find_cpos_for_left_leaf() out of alloc.c is to benefit punching-holes optimization patch, it however, can also be referred by other funcs in the future who want to do the same job. Signed-off-by: Tristan Ye <tristan.ye at oracle.com> --- fs/ocfs2/alloc.c | 4 ++-- fs/ocfs2/alloc.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/fs/ocfs2/alloc.c b/fs/ocfs2/alloc.c index 0cb4248..7e9cb75 100644 --- a/fs/ocfs2/alloc.c +++ b/fs/ocfs2/alloc.c @@ -2209,8 +2209,8 @@ out: * * Will return zero if the path passed in is already the leftmost path. */ -static int ocfs2_find_cpos_for_left_leaf(struct super_block *sb, - struct ocfs2_path *path, u32 *cpos) +int ocfs2_find_cpos_for_left_leaf(struct super_block *sb, + struct ocfs2_path *path, u32 *cpos) { int i, j, ret = 0; u64 blkno; diff --git a/fs/ocfs2/alloc.h b/fs/ocfs2/alloc.h index 4fb9882..a55a27b 100644 --- a/fs/ocfs2/alloc.h +++ b/fs/ocfs2/alloc.h @@ -319,6 +319,8 @@ int ocfs2_journal_access_path(struct ocfs2_caching_info *ci, struct ocfs2_path *path); int ocfs2_find_cpos_for_right_leaf(struct super_block *sb, struct ocfs2_path *path, u32 *cpos); +int ocfs2_find_cpos_for_left_leaf(struct super_block *sb, + struct ocfs2_path *path, u32 *cpos); int ocfs2_find_subtree_root(struct ocfs2_extent_tree *et, struct ocfs2_path *left, struct ocfs2_path *right); -- 1.5.5
Mark Fasheh
2010-May-18 18:50 UTC
[Ocfs2-devel] [PATCH 3/4] Ocfs2: Make ocfs2_find_cpos_for_left_leaf() public.
On Tue, May 11, 2010 at 05:54:44PM +0800, Tristan Ye wrote:> The original idea to pull ocfs2_find_cpos_for_left_leaf() out of > alloc.c is to benefit punching-holes optimization patch, it however, > can also be referred by other funcs in the future who want to do the > same job. > > Signed-off-by: Tristan Ye <tristan.ye at oracle.com>Acked-by: Mark Fasheh <mfasheh at suse.com> --Mark -- Mark Fasheh