Re: [Cluster-devel] [PATCH 04/12] fs: Generic infrastructure for optional inode fields

2014-10-01 Thread Andreas Dilger
On Oct 1, 2014, at 1:31 PM, Jan Kara wrote: > There are parts of struct inode which are used only by a few filesystems > (e.g. i_dquot pointers, i_mapping->private_list, ...). Thus all the > other filesystems are just wasting memory with these fields. On the > other hand it isn't simple to just mo

[Cluster-devel] [PATCH 12/12] vfs: Remove i_dquot field from inode

2014-10-01 Thread Jan Kara
All filesystems using VFS quotas are now converted to use their private i_dquot fields. Remove the i_dquot field from generic inode structure. Signed-off-by: Jan Kara --- fs/inode.c | 3 --- fs/super.c | 10 -- include/linux/fs.h | 3 --- 3 files changed, 16 deletions(-

[Cluster-devel] [PATCH 11/12] jfs: Convert to private i_dquot field

2014-10-01 Thread Jan Kara
CC: Dave Kleikamp CC: jfs-discuss...@lists.sourceforge.net Signed-off-by: Jan Kara --- fs/jfs/jfs_incore.h | 3 +++ fs/jfs/super.c | 13 + 2 files changed, 16 insertions(+) diff --git a/fs/jfs/jfs_incore.h b/fs/jfs/jfs_incore.h index cf47f09e8ac8..fa7e795bd8ae 100644 --- a/fs/

[Cluster-devel] [PATCH 07/12] ext3: Convert to private i_dquot field

2014-10-01 Thread Jan Kara
CC: linux-e...@vger.kernel.org Signed-off-by: Jan Kara --- fs/ext3/ext3.h | 4 fs/ext3/super.c | 13 + 2 files changed, 17 insertions(+) diff --git a/fs/ext3/ext3.h b/fs/ext3/ext3.h index e85ff15a060e..04f30a1f96cb 100644 --- a/fs/ext3/ext3.h +++ b/fs/ext3/ext3.h @@ -613,6 +61

[Cluster-devel] [PATCH 05/12] quota: Use optional inode field for i_dquot pointers

2014-10-01 Thread Jan Kara
i_dquot is a first candidate for using optional inode fields since it is used by relatively few filesystems (ext?, ocfs2, jfs, reiserfs). We cannot just pass quota pointers from filesystems to quota functions because during quotaon and quotaoff we have to traverse list of all inodes and manipulate

[Cluster-devel] [PATCH 08/12] ext4: Convert to private i_dquot field

2014-10-01 Thread Jan Kara
CC: linux-e...@vger.kernel.org CC: "Theodore Ts'o" Signed-off-by: Jan Kara --- fs/ext4/ext4.h | 4 fs/ext4/super.c | 10 ++ 2 files changed, 14 insertions(+) diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h index b0c225cdb52c..571a9f409e94 100644 --- a/fs/ext4/ext4.h +++ b/fs/ext4/ex

[Cluster-devel] [PATCH 02/12] gfs2: Set allowed quota types

2014-10-01 Thread Jan Kara
We support user and group quotas. Tell vfs about it. CC: Steven Whitehouse CC: cluster-devel@redhat.com Signed-off-by: Jan Kara --- fs/gfs2/ops_fstype.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/gfs2/ops_fstype.c b/fs/gfs2/ops_fstype.c index d3eae244076e..3032e6d069b5 100644 --- a/

[Cluster-devel] [PATCH 01/12] quota: Allow each filesystem to specify which quota types it supports

2014-10-01 Thread Jan Kara
Currently all filesystems supporting VFS quota support user and group quotas. With introduction of project quotas this is going to change so make sure filesystem isn't called for quota type it doesn't support by introduction of a bitmask determining which quota types each filesystem supports. Sign

[Cluster-devel] [PATCH 10/12] reiserfs: Convert to private i_dquot field

2014-10-01 Thread Jan Kara
CC: reiserfs-de...@vger.kernel.org CC: Jeff Mahoney Signed-off-by: Jan Kara --- fs/reiserfs/reiserfs.h | 4 fs/reiserfs/super.c| 13 + 2 files changed, 17 insertions(+) diff --git a/fs/reiserfs/reiserfs.h b/fs/reiserfs/reiserfs.h index 735c2c2b4536..197e59cbeb1c 100644 ---

[Cluster-devel] [PATCH 04/12] fs: Generic infrastructure for optional inode fields

2014-10-01 Thread Jan Kara
There are parts of struct inode which are used only by a few filesystems (e.g. i_dquot pointers, i_mapping->private_list, ...). Thus all the other filesystems are just wasting memory with these fields. On the other hand it isn't simple to just move these fields to filesystem specific part of inode

[Cluster-devel] [PATCH 03/12] xfs: Set allowed quota types

2014-10-01 Thread Jan Kara
We support user, group, and project quotas. Tell VFS about it. CC: x...@oss.sgi.com CC: Dave Chinner Signed-off-by: Jan Kara --- fs/xfs/xfs_super.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c index b194652033cd..b32e998e8cbc 100644 --- a/fs/xfs/

[Cluster-devel] [PATCH 06/12] ext2: Convert to private i_dquot field

2014-10-01 Thread Jan Kara
CC: linux-e...@vger.kernel.org Signed-off-by: Jan Kara --- fs/ext2/ext2.h | 3 +++ fs/ext2/super.c | 13 + 2 files changed, 16 insertions(+) diff --git a/fs/ext2/ext2.h b/fs/ext2/ext2.h index d9a17d0b124d..e4279ead4a05 100644 --- a/fs/ext2/ext2.h +++ b/fs/ext2/ext2.h @@ -689,6 +689

[Cluster-devel] [PATCH 0/12 RFC] Moving i_dquot out of struct inode

2014-10-01 Thread Jan Kara
Hello, this patch set moves i_dquot array from struct inode into filesystem private part of the inode. Thus filesystems which don't need it save 2 pointers in their inodes (would be 3 after we add project quota support into generic quota). I have patches to move inode->i_data.private_list int

[Cluster-devel] [PATCH 09/12] ocfs2: Convert to private i_dquot field

2014-10-01 Thread Jan Kara
CC: Mark Fasheh CC: Joel Becker CC: ocfs2-de...@oss.oracle.com Signed-off-by: Jan Kara --- fs/ocfs2/inode.h | 4 fs/ocfs2/super.c | 12 2 files changed, 16 insertions(+) diff --git a/fs/ocfs2/inode.h b/fs/ocfs2/inode.h index a6c991c0fc98..aed65d3aff57 100644 --- a/fs/ocfs2/i

Re: [Cluster-devel] [DLM PATCH] DLM: Don't wait for resource library lookups if NOLOOKUP is specified

2014-10-01 Thread David Teigland
On Wed, Oct 01, 2014 at 01:21:41PM -0400, Bob Peterson wrote: > Hi, > > This patch adds a new lock flag, DLM_LKF_NOLOOKUP, which instructs DLM > to refrain from sending lookup requests in cases where the lock library > node is not the current node. This is similar to the DLM_LKF_NOQUEUE > flag, ex

Re: [Cluster-devel] [DLM PATCH] DLM: Don't wait for resource library lookups if NOLOOKUP is specified

2014-10-01 Thread Steven Whitehouse
Hi, On 01/10/14 18:21, Bob Peterson wrote: Hi, This patch adds a new lock flag, DLM_LKF_NOLOOKUP, which instructs DLM to refrain from sending lookup requests in cases where the lock library node is not the current node. This is similar to the DLM_LKF_NOQUEUE flag, except it fails locks that wou

[Cluster-devel] [DLM PATCH] DLM: Don't wait for resource library lookups if NOLOOKUP is specified

2014-10-01 Thread Bob Peterson
Hi, This patch adds a new lock flag, DLM_LKF_NOLOOKUP, which instructs DLM to refrain from sending lookup requests in cases where the lock library node is not the current node. This is similar to the DLM_LKF_NOQUEUE flag, except it fails locks that would require a lookup, with -EAGAIN. This is no

Re: [Cluster-devel] [GFS2 PATCH] GFS2: Make rename not save dirent location

2014-10-01 Thread Steven Whitehouse
Hi, On 29/09/14 13:52, Bob Peterson wrote: Hi, This patch fixes a regression in the patch "GFS2: Remember directory insert point", commit 2b47dad866d04f14c328f888ba5406057b8c7d33. The problem had to do with the rename function: The function found space for the new dirent, and remembered that lo