]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
xfs: use a uint32_t to cache i_used_blocks in xfs_init_zone
authorChristoph Hellwig <hch@lst.de>
Wed, 16 Jul 2025 12:54:02 +0000 (14:54 +0200)
committerCarlos Maiolino <cem@kernel.org>
Thu, 24 Jul 2025 15:30:14 +0000 (17:30 +0200)
i_used_blocks is a uint32_t, so use the same value for the local variable
caching it.

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

index 01315ed75502dc3b157cb3935c34ed2370e99385..867465b5b5fe8c24cb8059be6a79338ea080ceba 100644 (file)
@@ -1017,7 +1017,7 @@ xfs_init_zone(
 {
        struct xfs_mount        *mp = rtg_mount(rtg);
        struct xfs_zone_info    *zi = mp->m_zone_info;
-       uint64_t                used = rtg_rmap(rtg)->i_used_blocks;
+       uint32_t                used = rtg_rmap(rtg)->i_used_blocks;
        xfs_rgblock_t           write_pointer, highest_rgbno;
        int                     error;