Skip to content

Commit 0ac82bc

Browse files
author
Andreas Gruenbacher
committed
gfs2: Remove unnecessary check in gfs2_evict_inode
We are no longer using LM_FLAG_TRY or LM_FLAG_TRY_1CB during inode evict, so ret cannot be GLR_TRYFAILED here. Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
1 parent 2ff7cf7 commit 0ac82bc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/gfs2/super.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1420,7 +1420,7 @@ static void gfs2_evict_inode(struct inode *inode)
14201420
if (gfs2_rs_active(&ip->i_res))
14211421
gfs2_rs_deltree(&ip->i_res);
14221422

1423-
if (ret && ret != GLR_TRYFAILED && ret != -EROFS)
1423+
if (ret && ret != -EROFS)
14241424
fs_warn(sdp, "gfs2_evict_inode: %d\n", ret);
14251425
out:
14261426
if (gfs2_holder_initialized(&gh))

0 commit comments

Comments
 (0)