summaryrefslogtreecommitdiffstats
path: root/fs/gfs2
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2009-10-02 11:54:39 +0100
committerSteven Whitehouse <swhiteho@redhat.com>2009-12-03 11:45:37 +0000
commitc65f7fb5342ecb8cb85e9b676327b3a43a5a4735 (patch)
tree97ce229e5a0a7b8730e2fc68388107960f218e79 /fs/gfs2
parent796bd9524731850967d437b7f47a86acc776ea89 (diff)
downloadblackbird-op-linux-c65f7fb5342ecb8cb85e9b676327b3a43a5a4735.tar.gz
blackbird-op-linux-c65f7fb5342ecb8cb85e9b676327b3a43a5a4735.zip
GFS2: Use forget_all_cached_acls()
Invalidate all the cached ACLs when we drop the glock. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2')
-rw-r--r--fs/gfs2/glops.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/gfs2/glops.c b/fs/gfs2/glops.c
index 6985eef06c39..78554acc0605 100644
--- a/fs/gfs2/glops.c
+++ b/fs/gfs2/glops.c
@@ -13,6 +13,7 @@
#include <linux/buffer_head.h>
#include <linux/gfs2_ondisk.h>
#include <linux/bio.h>
+#include <linux/posix_acl.h>
#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))
OpenPOWER on IntegriCloud