On Wed, Oct 09, 2019 at 07:30:52PM +0800, Ian Kent wrote: > +#ifndef CONFIG_XFS_QUOTA > + if (XFS_IS_QUOTA_RUNNING(mp)) { > + xfs_warn(mp, "quota support not available in this kernel."); > + return -EINVAL; > + } > +#endif this can use IS_ENABLED.
On Wed, Oct 09, 2019 at 07:30:52PM +0800, Ian Kent wrote: > +#ifndef CONFIG_XFS_QUOTA > + if (XFS_IS_QUOTA_RUNNING(mp)) { > + xfs_warn(mp, "quota support not available in this kernel."); > + return -EINVAL; > + } > +#endif this can use IS_ENABLED.