]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
gfs2: hide error messages after withdraw
authorAndreas Gruenbacher <agruenba@redhat.com>
Sun, 5 Apr 2026 12:21:22 +0000 (14:21 +0200)
committerAndreas Gruenbacher <agruenba@redhat.com>
Tue, 7 Apr 2026 20:20:00 +0000 (22:20 +0200)
In gfs2_evict_inode(), don't issue error messages once a withdraw has already
occurred.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/super.c

index b0b0bc5c9d2026f7ae00a0b533a296004f021165..938d271ae226d1bb6afb1e511db58e756361b96a 100644 (file)
@@ -1483,7 +1483,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 != -EROFS)
+       if (ret && !gfs2_withdrawn(sdp) && ret != -EROFS)
                fs_warn(sdp, "gfs2_evict_inode: %d\n", ret);
 out:
        if (gfs2_holder_initialized(&gh))