]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: avoid shared rmap operations for attr fork extents
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 12 Nov 2020 22:20:52 +0000 (17:20 -0500)
committerEric Sandeen <sandeen@sandeen.net>
Thu, 12 Nov 2020 22:20:52 +0000 (17:20 -0500)
commit171bead541f75871ebc66dcbcba07aef24878b0b
tree6a6c2c934e21debe548c4a9d76e25622cd0563b3
parent1c2b7ed16173f9188333b1965251b0b49343e6e7
xfs: avoid shared rmap operations for attr fork extents

Source kernel commit: d7884e6e90da974b50dc2c3bf50e03b70750e5f1

During code review, I noticed that the rmap code uses the (slower)
shared mappings rmap functions for any extent of a reflinked file, even
if those extents are for the attr fork, which doesn't support sharing.
We can speed up rmap a tiny bit by optimizing out this case.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Chandan Babu R <chandanrlinux@gmail.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_rmap.c