Re: [PATCH] xfs: resample the data fork mapping after cycling ILOCK

Carlos Maiolino <[email protected]>
Newsgroups org.kernel.vger.linux-xfs
Message-ID <178453787122.7428.13518644933049488575.b4-ty@b4>
On Mon, 13 Jul 2026 23:03:44 -0700, Darrick J. Wong wrote:
> xfs_reflink_fill_{cow_hole,delalloc} are both presented with an inode,
> a data fork mapping, and a cow fork mapping.  Unfortunately, these two
> helpers cycle the ILOCK to grab a transaction, which means that the
> mappings are stale as soon as we reacquire the ILOCK.  Currently we
> refresh the cow fork mapping by re-calling xfs_find_trim_cow_extent, but
> we don't refresh the data fork mapping beforehand, which means that the
> xfs_bmap_trim_cow in that function queries the refcount btree about the
> wrong physical blocks and returns an inaccurate value in *shared.
> 
> [...]

Applied to for-next, thanks!

[1/1] xfs: resample the data fork mapping after cycling ILOCK
      commit: 2f4acd0fcd862e22eab45690ec2c08c80b6ef2e7

Best regards,
-- 
Carlos Maiolino <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.