]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: avoid shared rmap operations for attr fork extents
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 24 Sep 2020 16:42:55 +0000 (09:42 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Fri, 25 Sep 2020 18:34:08 +0000 (11:34 -0700)
commitddaac82fe5ad116e88cd6df8f2c2888841edd8f3
tree14e8d83ba286451dee36ea7baa5430dd30dc1eae
parent88b465e5d8726b035cb88442e7669be77042cfa9
xfs: avoid shared rmap operations for attr fork extents

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>
fs/xfs/libxfs/xfs_rmap.c