]> www.infradead.org Git - users/hch/xfs.git/commit
xfs: flush inodegc before swapon
authorChristoph Hellwig <hch@lst.de>
Thu, 6 Feb 2025 06:15:00 +0000 (07:15 +0100)
committerCarlos Maiolino <cem@kernel.org>
Mon, 10 Feb 2025 09:29:27 +0000 (10:29 +0100)
commit35010cc72acc468c98962f1056480a0a363eb1c3
tree5c74156119d72c7577900cd01e10e8e0dcf04ec4
parent6f7ce473cca4952e4ac673f0fdf6dad2fac40324
xfs: flush inodegc before swapon

Fix the brand new xfstest that tries to swapon on a recently unshared
file and use the chance to document the other bit of magic in this
function.

The big comment is taken from a mailinglist post by Dave Chinner.

Fixes: 5e672cd69f0a53 ("xfs: introduce xfs_inodegc_push()")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/xfs_aops.c