Defragmentation XFS
From ArchWiki
It seems even XFS file system needs defragmentation occasionally.
Inspect Fragmentation Levels
To see how much fragmentation your file system currently has:
xfs_db -c frag -r /dev/sda3
Note: Make sure you use the block device (eg, /dev/sda3) in the above command, and not the mount point (eg, /media/music)
Perform Defragmentation
To begin defragmentation, use the xfs_fsr command which is included with the "xfsdump" package.
xfs_fsr /dev/sda3
Note: Make sure you use the block device (eg, /dev/sda3) in the above command, and not the mount point (eg, /media/music)