Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c65f7fb5 authored by Steven Whitehouse's avatar Steven Whitehouse
Browse files

GFS2: Use forget_all_cached_acls()



Invalidate all the cached ACLs when we drop the glock.

Signed-off-by: default avatarSteven Whitehouse <swhiteho@redhat.com>
parent 796bd952
Loading
Loading
Loading
Loading
+4 −1
Original line number Original line Diff line number Diff line
@@ -13,6 +13,7 @@
#include <linux/buffer_head.h>
#include <linux/buffer_head.h>
#include <linux/gfs2_ondisk.h>
#include <linux/gfs2_ondisk.h>
#include <linux/bio.h>
#include <linux/bio.h>
#include <linux/posix_acl.h>


#include "gfs2.h"
#include "gfs2.h"
#include "incore.h"
#include "incore.h"
@@ -184,8 +185,10 @@ static void inode_go_inval(struct gfs2_glock *gl, int flags)
	if (flags & DIO_METADATA) {
	if (flags & DIO_METADATA) {
		struct address_space *mapping = gl->gl_aspace->i_mapping;
		struct address_space *mapping = gl->gl_aspace->i_mapping;
		truncate_inode_pages(mapping, 0);
		truncate_inode_pages(mapping, 0);
		if (ip)
		if (ip) {
			set_bit(GIF_INVALID, &ip->i_flags);
			set_bit(GIF_INVALID, &ip->i_flags);
			forget_all_cached_acls(&ip->i_inode);
		}
	}
	}


	if (ip == GFS2_I(gl->gl_sbd->sd_rindex))
	if (ip == GFS2_I(gl->gl_sbd->sd_rindex))