Re: [Cluster-devel] [PATCH] fs: record task name which froze superblock

2015-02-17 Thread Alexey Dobriyan
On Mon, Feb 16, 2015 at 10:38:52AM +0100, Jan Kara wrote: On Sat 14-02-15 21:55:24, Alexey Dobriyan wrote: Freezing and thawing are separate system calls, task which is supposed to thaw filesystem/superblock can disappear due to crash or not thaw due to a bug. Record at least task name (we

[Cluster-devel] [PATCH v2] fs: record task name which froze superblock

2015-02-17 Thread Alexey Dobriyan
Freezing and thawing are separate system calls, task which is supposed to thaw filesystem/superblock can disappear due to crash or not thaw due to a bug. Record at least task name (we can't take task_struct reference) to make support engineer's life easier. Hopefully 16 bytes per superblock isn't

[Cluster-devel] [GFS2 PATCH] GFS2: Allocate reservation during write_begin if needed

2015-02-17 Thread Bob Peterson
Hi, This patch adds a call to function gfs2_rs_alloc to make sure a reservation structure has been allocated before attempting to reserve blocks. Regards, Bob Peterson Red Hat File Systems Signed-off-by: Bob Peterson rpete...@redhat.com --- fs/gfs2/aops.c | 3 +++ 1 file changed, 3

Re: [Cluster-devel] [GFS2 PATCH 1/3] gfs2: perform quota checks against allocation parameters

2015-02-17 Thread Abhijith Das
- Original Message - From: Steven Whitehouse swhit...@redhat.com To: Abhi Das a...@redhat.com, cluster-devel@redhat.com Sent: Tuesday, February 17, 2015 3:38:07 AM Subject: Re: [Cluster-devel] [GFS2 PATCH 1/3] gfs2: perform quota checks against allocation parameters Hi, On

Re: [Cluster-devel] [GFS2 PATCH 3/3] gfs2: allow fallocate to max out quotas/fs efficiently

2015-02-17 Thread Abhijith Das
- Original Message - From: Steven Whitehouse swhit...@redhat.com To: Abhi Das a...@redhat.com, cluster-devel@redhat.com Sent: Tuesday, February 17, 2015 3:41:15 AM Subject: Re: [Cluster-devel] [GFS2 PATCH 3/3] gfs2: allow fallocate to max out quotas/fs efficiently Hi, On

Re: [Cluster-devel] [GFS2 PATCH] GFS2: Allocate reservation during write_begin if needed

2015-02-17 Thread Bob Peterson
- Original Message - Hi, Since we set the allocation structure when the write call begins, and it is not deallocated until there are no writers left with the file open, how does this happen? Steve. Hi, In a normal write, the code goes through gfs2_page_mkwrite or

Re: [Cluster-devel] [GFS2 PATCH] GFS2: Allocate reservation during write_begin if needed

2015-02-17 Thread Steven Whitehouse
Hi, Since we set the allocation structure when the write call begins, and it is not deallocated until there are no writers left with the file open, how does this happen? Steve. On 17/02/15 17:09, Bob Peterson wrote: Hi, This patch adds a call to function gfs2_rs_alloc to make sure a

Re: [Cluster-devel] [GFS2 PATCH] GFS2: Allocate reservation during write_begin if needed

2015-02-17 Thread Steven Whitehouse
Hi, On 17/02/15 19:09, Bob Peterson wrote: - Original Message - Hi, Since we set the allocation structure when the write call begins, and it is not deallocated until there are no writers left with the file open, how does this happen? Steve. Hi, In a normal write, the code goes

Re: [Cluster-devel] [PATCH] Add myself (Bob Peterson) as a maintainer of GFS2

2015-02-17 Thread Bob Peterson
- Original Message - Hi Bob, On Mon, 16 Feb 2015 09:20:56 -0500 (EST) Bob Peterson rpete...@redhat.com wrote: This patch adds Bob Peterson as a maintainer of the GFS2 file system. It also changes the development repository to a shared location rather than Steve Whitehouse's

Re: [Cluster-devel] [GFS2 PATCH 1/3] gfs2: perform quota checks against allocation parameters

2015-02-17 Thread Steven Whitehouse
Hi, On 16/02/15 17:59, Abhi Das wrote: Use struct gfs2_alloc_parms as an argument to gfs2_quota_check() and gfs2_quota_lock_check() to check for quota violations while accounting for the new blocks requested by the current operation in ap-target. Previously, the number of new blocks requested

Re: [Cluster-devel] [GFS2 PATCH 3/3] gfs2: allow fallocate to max out quotas/fs efficiently

2015-02-17 Thread Steven Whitehouse
Hi, On 16/02/15 17:59, Abhi Das wrote: We can quickly get an estimate of how many more blocks are available for allocation restricted by quota and fs size respectively using the ap-allowed field in the gfs2_alloc_parms structure. gfs2_quota_check() and gfs2_inplace_reserve() provide these