From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steven Whitehouse Date: Tue, 29 Sep 2009 16:48:26 +0100 Subject: [Cluster-devel] [PATCH 3/7] GFS2: Use forget_all_cached_acls() In-Reply-To: <1254239310-1963-3-git-send-email-swhiteho@redhat.com> References: <1254239310-1963-1-git-send-email-swhiteho@redhat.com> <1254239310-1963-2-git-send-email-swhiteho@redhat.com> <1254239310-1963-3-git-send-email-swhiteho@redhat.com> Message-ID: <1254239310-1963-4-git-send-email-swhiteho@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Invalidate all the cached ACLs when we drop the glock. Signed-off-by: Steven Whitehouse --- fs/gfs2/glops.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/fs/gfs2/glops.c b/fs/gfs2/glops.c index 6985eef..a80950b 100644 --- a/fs/gfs2/glops.c +++ b/fs/gfs2/glops.c @@ -13,6 +13,7 @@ #include #include #include +#include #include "gfs2.h" #include "incore.h" @@ -186,6 +187,7 @@ static void inode_go_inval(struct gfs2_glock *gl, int flags) truncate_inode_pages(mapping, 0); if (ip) set_bit(GIF_INVALID, &ip->i_flags); + forget_all_cached_acls(&ip->i_inode); } if (ip == GFS2_I(gl->gl_sbd->sd_rindex)) -- 1.6.2.5