xfs: improve mapping type check in xfs_vm_writepage