]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
xfs: skip zoned RT inodes in xfs_inodegc_want_queue_rt_file
authorChristoph Hellwig <hch@lst.de>
Sun, 17 Nov 2024 07:02:04 +0000 (08:02 +0100)
committerChristoph Hellwig <hch@lst.de>
Mon, 3 Mar 2025 15:16:46 +0000 (08:16 -0700)
The zoned allocator never performs speculative preallocations, so don't
bother queueing up zoned inodes here.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
fs/xfs/xfs_icache.c

index c9ded501e89b2e813b99ffef5e4ab661d880ce1e..2f53ca7e12d454d79d5705939d09c1881db7b4cb 100644 (file)
@@ -2073,7 +2073,7 @@ xfs_inodegc_want_queue_rt_file(
 {
        struct xfs_mount        *mp = ip->i_mount;
 
-       if (!XFS_IS_REALTIME_INODE(ip))
+       if (!XFS_IS_REALTIME_INODE(ip) || xfs_has_zoned(mp))
                return false;
 
        if (xfs_compare_freecounter(mp, XC_FREE_RTEXTENTS,