Re: [Ocfs2-devel] [PATCH v2] ocfs2: check the metadate alloc before marking extent written

2017-12-13 Thread Changwei Ge
On 2017/12/14 11:04, alex chen wrote: > Hi Changwei, > > On 2017/12/14 8:56, Changwei Ge wrote: >> On 2017/12/13 15:25, alex chen wrote: >>> Hi Changwei, >>> >>> On 2017/12/12 9:05, Changwei Ge wrote: Hi Alex, On 2017/12/5 11:31, alex chen wrote: > We need to check the free

[Ocfs2-devel] [PATCH v2 2/2] ocfs2: add trimfs lock to avoid duplicated trims in cluster

2017-12-13 Thread Gang He
As you know, ocfs2 has support trim the underlying disk via fstrim command. But there is a problem, ocfs2 is a shared disk cluster file system, if the user configures a scheduled fstrim job on each file system node, this will trigger multiple nodes trim a shared disk simultaneously, it is very

[Ocfs2-devel] [PATCH v2 1/2] ocfs2: add trimfs dlm lock resource

2017-12-13 Thread Gang He
Introduce a new dlm lock resource, which will be used to communicate during fstrim a ocfs2 device from cluster nodes. Signed-off-by: Gang He --- fs/ocfs2/dlmglue.c | 86 + fs/ocfs2/dlmglue.h | 29 +

Re: [Ocfs2-devel] [PATCH v2] ocfs2: check the metadate alloc before marking extent written

2017-12-13 Thread alex chen
Hi Changwei, On 2017/12/14 8:56, Changwei Ge wrote: > On 2017/12/13 15:25, alex chen wrote: >> Hi Changwei, >> >> On 2017/12/12 9:05, Changwei Ge wrote: >>> Hi Alex, >>> >>> On 2017/12/5 11:31, alex chen wrote: We need to check the free number of the records in each loop to mark extent

Re: [Ocfs2-devel] [PATCH v2] ocfs2: check the metadate alloc before marking extent written

2017-12-13 Thread Changwei Ge
On 2017/12/13 15:25, alex chen wrote: > Hi Changwei, > > On 2017/12/12 9:05, Changwei Ge wrote: >> Hi Alex, >> >> On 2017/12/5 11:31, alex chen wrote: >>> We need to check the free number of the records in each loop to mark >>> extent written, because the last extent block may be changed through