[PATCH 0/2] fix cluster leakage in ocfs2_defrag_extent

2018-09-03 Thread Larry Chen
ocfs2_add_clusters_in_btree. Larry Chen (2): add declaration of ocfs2_free_local_alloc_bits fix clusters leak in ocfs2_defrag_extent fs/ocfs2/alloc.h| 6 ++ fs/ocfs2/move_extents.c | 16 2 files changed, 22 insertions(+) -- 2.13.7

[PATCH 2/2] fix clusters leak in ocfs2_defrag_extent

2018-09-03 Thread Larry Chen
Signed-off-by: Larry Chen --- fs/ocfs2/move_extents.c | 16 1 file changed, 16 insertions(+) diff --git a/fs/ocfs2/move_extents.c b/fs/ocfs2/move_extents.c index d85dc8a02bd6..4f2ad054b419 100644 --- a/fs/ocfs2/move_extents.c +++ b/fs/ocfs2/move_extents.c @@ -226,6 +226,8

[PATCH 1/2] add declaration of ocfs2_free_local_alloc_bits

2018-09-03 Thread Larry Chen
Signed-off-by: Larry Chen --- fs/ocfs2/alloc.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/fs/ocfs2/alloc.h b/fs/ocfs2/alloc.h index 250bcacdf9e9..5770503b0e36 100644 --- a/fs/ocfs2/alloc.h +++ b/fs/ocfs2/alloc.h @@ -323,4 +323,10 @@ int ocfs2_find_cpos_for_left_leaf(struct

[PATCH] fix crash on ocfs2_duplicate_clusters_by_page

2018-08-16 Thread Larry Chen
l_64+0x74/0x140 entry_SYSCALL_64_after_hwframe+0x3d/0xa2 To: mfas...@versity.com, jl...@evilplan.org Cc: linux-kernel@vger.kernel.org, ocfs2-de...@oss.oracle.com, a...@linux-foundation.org Signed-off-by: Larry Chen --- fs/ocfs2/refcounttree.c | 10 -- 1 file changed, 8 insertions(

Re: [PATCH] ocfs2: ocfs2_inode_lock_tracker does not distinguish lock level

2018-05-10 Thread Larry Chen
Hello Andrew, On 05/11/2018 05:49 AM, Andrew Morton wrote: On Thu, 10 May 2018 13:32:30 +0800 Larry Chen wrote: ocfs2_inode_lock_tracker as a variant of ocfs2_inode_lock, is used to prevent deadlock due to recursive lock acquisition. But this function does not distinguish whether the

[PATCH] ocfs2: ocfs2_inode_lock_tracker does not distinguish lock level

2018-05-09 Thread Larry Chen
. process 1 process 2 ocfs2_inode_lock_tracker(ex=0) <== ocfs2_inode_lock_tracker(ex=1) ocfs2_inode_lock_tracker(ex=1) Signed-off-by: Larry Chen Reviewed-by: Gang He --- fs/ocfs2/dlmglue.c |

Re: [Ocfs2-devel] [PATCH] Correct a comment error

2018-03-01 Thread Larry Chen
same mistake in ocfs2_reflink_inodes_lock(), could you help fixing them all? thanks, Jun On 2018/2/28 18:17, Larry Chen wrote: The function ocfs2_double_lock tries to lock the inode with lower blockid first, not lockid. Signed-off-by: Larry Chen --- fs/ocfs2/namei.c | 2 +- 1 file chang