Skip to content

Commit fe1bff6

Browse files
author
Andreas Gruenbacher
committed
gfs2: Simply dequeue iopen glock in gfs2_evict_inode
With the previous change, to simplify things, we can always just dequeue and uninitialize the iopen glock in gfs2_evict_inode() even if it isn't queued anymore. Signed-off-by: Andreas Gruenbacher <[email protected]>
1 parent 764665c commit fe1bff6

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

fs/gfs2/super.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1419,12 +1419,9 @@ static void gfs2_evict_inode(struct inode *inode)
14191419
struct gfs2_glock *gl = ip->i_iopen_gh.gh_gl;
14201420

14211421
glock_clear_object(gl, ip);
1422-
if (test_bit(HIF_HOLDER, &ip->i_iopen_gh.gh_iflags)) {
1423-
ip->i_iopen_gh.gh_flags |= GL_NOCACHE;
1424-
gfs2_glock_dq(&ip->i_iopen_gh);
1425-
}
14261422
gfs2_glock_hold(gl);
1427-
gfs2_holder_uninit(&ip->i_iopen_gh);
1423+
ip->i_iopen_gh.gh_flags |= GL_NOCACHE;
1424+
gfs2_glock_dq_uninit(&ip->i_iopen_gh);
14281425
gfs2_glock_put_eventually(gl);
14291426
}
14301427
if (ip->i_gl) {

0 commit comments

Comments
 (0)