]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
xfs: Update lazy counters in xfs_growfs_rt_bmblock()
authorNirjhar Roy (IBM) <nirjhar.roy.lists@gmail.com>
Fri, 20 Feb 2026 06:54:00 +0000 (12:24 +0530)
committerCarlos Maiolino <cem@kernel.org>
Wed, 25 Feb 2026 12:58:49 +0000 (13:58 +0100)
commitc2368fc89a684be2900daaa2bbf68cbc147e8d3d
tree8a16f420019dde1070e57f33dec068fc8b85f4c3
parentac1d977096a17d56c55bd7f90be48e81ac4cec3f
xfs: Update lazy counters in xfs_growfs_rt_bmblock()

Update lazy counters in xfs_growfs_rt_bmblock() similar to the way it
is done xfs_growfs_data_private(). This is because the lazy counters are
not always updated and synching the counters will avoid inconsistencies
between frexents and rtextents(total realtime extent count). This will
be more useful once realtime shrink is implemented as this will prevent
some transient state to occur where frexents might be greater than
total rtextents.

Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nirjhar Roy (IBM) <nirjhar.roy.lists@gmail.com>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/xfs_rtalloc.c