diff options
Diffstat (limited to 'fs/gfs2/ops_inode.c')
-rw-r--r-- | fs/gfs2/ops_inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/ops_inode.c b/fs/gfs2/ops_inode.c index 0e4eade47bf2..b247f25effbf 100644 --- a/fs/gfs2/ops_inode.c +++ b/fs/gfs2/ops_inode.c | |||
@@ -844,7 +844,7 @@ static int gfs2_permission(struct inode *inode, int mask, struct nameidata *nd) | |||
844 | struct gfs2_holder i_gh; | 844 | struct gfs2_holder i_gh; |
845 | int error; | 845 | int error; |
846 | 846 | ||
847 | if (ip->i_vn == ip->i_gl->gl_vn) | 847 | if (!test_bit(GIF_INVALID, &ip->i_flags)) |
848 | return generic_permission(inode, mask, gfs2_check_acl); | 848 | return generic_permission(inode, mask, gfs2_check_acl); |
849 | 849 | ||
850 | error = gfs2_glock_nq_init(ip->i_gl, LM_ST_SHARED, LM_FLAG_ANY, &i_gh); | 850 | error = gfs2_glock_nq_init(ip->i_gl, LM_ST_SHARED, LM_FLAG_ANY, &i_gh); |