xfs: optimize log flushing in xfs_fsync