]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
gfs2: Remove unnecessary check in gfs2_evict_inode
authorAndreas Gruenbacher <agruenba@redhat.com>
Mon, 10 Nov 2025 21:05:45 +0000 (21:05 +0000)
committerAndreas Gruenbacher <agruenba@redhat.com>
Tue, 24 Feb 2026 17:22:51 +0000 (18:22 +0100)
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>
fs/gfs2/super.c

index d96160636161c8e01b65fb82196dec0f313f0455..fd8eb9e15719a9865594ad0cff74672485c029f4 100644 (file)
@@ -1420,7 +1420,7 @@ static void gfs2_evict_inode(struct inode *inode)
        if (gfs2_rs_active(&ip->i_res))
                gfs2_rs_deltree(&ip->i_res);
 
-       if (ret && ret != GLR_TRYFAILED && ret != -EROFS)
+       if (ret && ret != -EROFS)
                fs_warn(sdp, "gfs2_evict_inode: %d\n", ret);
 out:
        if (gfs2_holder_initialized(&gh))