diff options
Diffstat (limited to 'fs/gfs2/acl.c')
-rw-r--r-- | fs/gfs2/acl.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/gfs2/acl.c b/fs/gfs2/acl.c index 9ef4cf2c03db..399317841501 100644 --- a/fs/gfs2/acl.c +++ b/fs/gfs2/acl.c | |||
@@ -179,9 +179,7 @@ int gfs2_check_acl(struct inode *inode, int mask) | |||
179 | struct gfs2_holder i_gh; | 179 | struct gfs2_holder i_gh; |
180 | int error; | 180 | int error; |
181 | 181 | ||
182 | error = gfs2_glock_nq_init(ip->i_gl, | 182 | error = gfs2_glock_nq_init(ip->i_gl, LM_ST_SHARED, LM_FLAG_ANY, &i_gh); |
183 | LM_ST_SHARED, LM_FLAG_ANY, | ||
184 | &i_gh); | ||
185 | if (!error) { | 183 | if (!error) { |
186 | error = gfs2_check_acl_locked(inode, mask); | 184 | error = gfs2_check_acl_locked(inode, mask); |
187 | gfs2_glock_dq_uninit(&i_gh); | 185 | gfs2_glock_dq_uninit(&i_gh); |