From: Steven Whitehouse Date: Fri, 2 Oct 2009 10:54:39 +0000 (+0100) Subject: GFS2: Use forget_all_cached_acls() X-Git-Tag: v3.0~6834^2~26 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c65f7fb5342ecb8cb85e9b676327b3a43a5a4735;p=platform%2Fkernel%2Flinux-amlogic.git GFS2: Use forget_all_cached_acls() Invalidate all the cached ACLs when we drop the glock. Signed-off-by: Steven Whitehouse --- diff --git a/fs/gfs2/glops.c b/fs/gfs2/glops.c index 6985eef..78554ac 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" @@ -184,8 +185,10 @@ static void inode_go_inval(struct gfs2_glock *gl, int flags) if (flags & DIO_METADATA) { struct address_space *mapping = gl->gl_aspace->i_mapping; truncate_inode_pages(mapping, 0); - if (ip) + 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))