[Cluster-devel] [PATCH v4 7/7] gfs2: Invalide security labels of inodes when they go invalid

2015-10-28 Thread Andreas Gruenbacher
When gfs2 releases the glock of an inode, it must invalidate all information cached for that inode, including the page cache and acls. Use the new security_inode_invalidate_secctx hook to also invalidate security labels in that case. These items will be reread from disk when needed after reacquir

[Cluster-devel] [PATCH 2/4] GFS2: Reduce inode size by using 32-bit i_generation

2015-10-28 Thread Bob Peterson
This patch removes variable i_generation from gfs2_inode. In its place, we use inode->i_generation which is pretty much the same thing, in 32-bits. The loss of 32 bits should not be a problem. Signed-off-by: Bob Peterson --- fs/gfs2/glops.c | 2 +- fs/gfs2/incore.h

[Cluster-devel] [PATCH 4/4] GFS2: Make rgrp reservations part of the gfs2_inode structure

2015-10-28 Thread Bob Peterson
Before this patch, multi-block reservation structures were allocated from a special slab. This patch folds the structure into the gfs2_inode structure. The disadvantage is that the gfs2_inode needs more memory, even when a file is opened read-only. The advantages are: (a) we don't need the special

[Cluster-devel] [PATCH 3/4] GFS2: Extract quota data from reservations structure (revert 5407e24)

2015-10-28 Thread Bob Peterson
This patch basically reverts the majority of patch 5407e24. That patch eliminated the gfs2_qadata structure in favor of just using the reservations structure. The problem with doing that is that it increases the size of the reservations structure. That is not an issue until it comes time to fold th

[Cluster-devel] [PATCH 0/4] Fix erroneous ETXTBSY problems with GFS2

2015-10-28 Thread Bob Peterson
Commit 2b3dcf3 (GFS2: Increase i_writecount during gfs2_setattr_size) added a bunch of calls to get_write_access() in order to ensure file close could not delete an inode's multi-block reservation while the function was running. For example, close was interfering with setattr_size. The patch worked

[Cluster-devel] [PATCH 1/4] GFS2: Reduce size of incore inode

2015-10-28 Thread Bob Peterson
This patch makes no functional changes. Its goal is to reduce the size of the gfs2 inode in memory by rearranging structures and changing the size of some variables within the structure. Signed-off-by: Bob Peterson --- fs/gfs2/file.c | 2 +- fs/gfs2/glock.c | 10 +- fs/gfs2/glock.h