]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfs: don't increment m_generation for all errors in xfs_growfs_data
authorChristoph Hellwig <hch@lst.de>
Mon, 17 Mar 2025 05:44:53 +0000 (06:44 +0100)
committerCarlos Maiolino <cem@kernel.org>
Tue, 18 Mar 2025 12:06:00 +0000 (13:06 +0100)
commit9ec3f7977a32f2045ef14445f165bcd96e596344
tree6f69d06df1335c72d5472b2d7892b72589acf14c
parentbeba9487138151c17dec17105364b35935f21562
xfs: don't increment m_generation for all errors in xfs_growfs_data

xfs_growfs_data needs to increment m_generation as soon as the primary
superblock has been updated.  As the update of the secondary superblocks
was part of xfs_growfs_data_private that mean the incremented had to be
done unconditionally once that was called.  Later, commit 83a7f86e39ff
("xfs: separate secondary sb update in growfs") split the secondary
superblock update into a separate helper, so now the increment on error
can be limited to failed calls to xfs_update_secondary_sbs.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/xfs_fsops.c