Mounting an XFS filesystem has several steps
Allocate a xfs_mount structure
Parse mount options (xfs_parseargs)
Open up the log and realtime device
Call xfs_readsb to read the super block
Call xfs_finish_flags the mount options to what was in the super block
Tell the buffers what the sector size is going to be with xfs_setsize_buftarg
Check to see if this device supports write barriers
Then we call xfs_mountfs to complete the mount
Finally we read the root inode and start the sync daemon (xfssyncd)