> + if (mp->m_sb.sb_rblocks == 0)
> + return 0;
> + else {
> + cmn_err(CE_WARN, "XFS: Not built with CONFIG_XFS_RT");
> + return ENOSYS;
> + }
No need for the else if you return anyway.
Looks good either way,
Reviewed-by: Christoph Hellwig <hch at lst.de>