Re: [Ocfs2-devel] [PATCH v2] ocfs2: retry on ENOSPC if sufficient space in truncate log

2016-07-07 Thread Eric Ren
Hi Joseph, On 07/07/2016 09:00 AM, Joseph Qi wrote: >> @@ -1164,7 +1164,8 @@ static int ocfs2_reserve_clusters_with_limit(struct >> ocfs2_super *osb, >> int flags, >> struct ocfs2_alloc_context **ac) >> { >> -

Re: [Ocfs2-devel] [PATCH v2] ocfs2: retry on ENOSPC if sufficient space in truncate log

2016-07-06 Thread Joseph Qi
Hi Eric, On 2016/7/6 18:57, Eric Ren wrote: > The testcase "mmaptruncate" in ocfs2 test suite always fails with > ENOSPC error on small volume (say less than 10G). This testcase > repeatedly performs "extend" and "truncate" on a file. Continuously, > it truncates the file to 1/2 of the size, and t

[Ocfs2-devel] [PATCH v2] ocfs2: retry on ENOSPC if sufficient space in truncate log

2016-07-06 Thread Eric Ren
The testcase "mmaptruncate" in ocfs2 test suite always fails with ENOSPC error on small volume (say less than 10G). This testcase repeatedly performs "extend" and "truncate" on a file. Continuously, it truncates the file to 1/2 of the size, and then extends to 100% of the size. The main bitmap will