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)
commitd7884e6e90da974b50dc2c3bf50e03b70750e5f1
tree14e8d83ba286451dee36ea7baa5430dd30dc1eae
parentb38e07401ec7e6eefc1f84e682f5b75ce3a685e5
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