[Cluster-devel] [PATCH 0/8 v6] quota: Unify VFS and XFS quota interfaces

2015-03-04 Thread Jan Kara
Hello, these are outstanding patches in my series unifying VFS and XFS quota interfaces so that XFS quotactls work for filesystems with VFS quotas and vice versa. This is useful so that userspace doesn't have to care that much about which filesystem it is using at least when using basic

[Cluster-devel] [PATCH 8/8] quota: Hook up Q_XSETQLIM for id 0 to -set_info

2015-03-04 Thread Jan Kara
Setting timers or warning counts for id 0 via Q_XSETQLIM is used to actually set time limits and warning limits for all users. Hook up -set_info to this so that VFS quota time limits get set the same way as XFS ones. When doing this Q_XSETQLIM for XFS is effectively split into two independent

[Cluster-devel] [PATCH 3/8] xfs: Convert to using -get_state callback

2015-03-04 Thread Jan Kara
Convert xfs to use -get_state callback instead of -get_xstate and -get_xstatev. Reviewed-by: Christoph Hellwig h...@lst.de Signed-off-by: Jan Kara j...@suse.cz --- fs/xfs/xfs_qm.h | 4 -- fs/xfs/xfs_qm_syscalls.c | 176 ---

[Cluster-devel] [PATCH 4/8] gfs2: Convert to using -get_state callback

2015-03-04 Thread Jan Kara
Convert gfs2 to use -get_state callback instead of -get_xstate. Acked-by: Bob Peterson rpete...@redhat.com Signed-off-by: Jan Kara j...@suse.cz --- fs/gfs2/quota.c | 28 +++- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/fs/gfs2/quota.c b/fs/gfs2/quota.c

[Cluster-devel] [PATCH 2/8] quota: Wire up Q_GETXSTATE and Q_GETXSTATV calls to work with -get_state

2015-03-04 Thread Jan Kara
Add appropriate conversion functions so that filesystems supporting -get_state() method can be queried using Q_GETXSTATE and Q_GETXSTATV calls. Reviewed-by: Christoph Hellwig h...@lst.de Signed-off-by: Jan Kara j...@suse.cz --- fs/quota/quota.c | 138

[Cluster-devel] [PATCH] fsck.gfs2: Fetch directory inodes early in pass2()

2015-03-04 Thread Andrew Price
pass2() reads directory inodes twice: once indirectly through check_dir() and again shortly afterwards to perform other checks on the inode. To remove the duplicate reads, this patch moves the inode loading outside of check_dir() and keeps it around for the further checks. In order to avoid adding

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

2015-03-04 Thread Alexey Dobriyan
On Mon, Mar 2, 2015 at 7:38 AM, Mateusz Guzik mgu...@redhat.com wrote: As explained below, this one task name is already very useful and likely covers majority of real life use cases. While working in support we were getting a lot of vmcores where hung task detector panicked the kernel

[Cluster-devel] [PATCH 6/8] quota: Make -set_info use structure with neccesary info to VFS and XFS

2015-03-04 Thread Jan Kara
Change -set_info to take new qc_info structure which contains all the necessary information both for XFS and VFS. Convert Q_SETINFO handler to use this structure. Signed-off-by: Jan Kara j...@suse.cz --- fs/quota/dquot.c | 27 --- fs/quota/quota.c | 21

[Cluster-devel] [PATCH 5/8] quota: Remove -get_xstate and -get_xstatev callbacks

2015-03-04 Thread Jan Kara
These callbacks are now unused. Remove them. Reviewed-by: Christoph Hellwig h...@lst.de Signed-off-by: Jan Kara j...@suse.cz --- fs/quota/quota.c | 14 -- include/linux/quota.h | 2 -- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/fs/quota/quota.c

[Cluster-devel] [PATCH 7/8] xfs: Add support for Q_SETINFO

2015-03-04 Thread Jan Kara
Add support to XFS so that time limits can be set through Q_SETINFO quotactl. Reviewed-by: Christoph Hellwig h...@lst.de Signed-off-by: Jan Kara j...@suse.cz --- fs/xfs/xfs_quotaops.c | 37 + 1 file changed, 37 insertions(+) diff --git a/fs/xfs/xfs_quotaops.c

[Cluster-devel] [PATCH 1/8] quota: Make VFS quotas use new interface for getting quota info

2015-03-04 Thread Jan Kara
Create new internal interface for getting information about quota which contains everything needed for both VFS quotas and XFS quotas. Make VFS use this and hook it up to Q_GETINFO. Reviewed-by: Christoph Hellwig h...@lst.de Signed-off-by: Jan Kara j...@suse.cz --- fs/ext3/super.c | 2