]> www.infradead.org Git - users/willy/pagecache.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>
Fri, 14 Feb 2025 08:40:35 +0000 (09:40 +0100)
commit2d873efd174bae9005776937d5ac6a96050266db
tree5c74156119d72c7577900cd01e10e8e0dcf04ec4
parent3cd6a8056f5a2e794c42fc2114ee2611e358b357
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