]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: dont use XFS_IS_QUOTA_RUNNING() for option check
authorIan Kent <raven@themaw.net>
Mon, 4 Nov 2019 21:58:41 +0000 (13:58 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 5 Nov 2019 16:28:25 +0000 (08:28 -0800)
commite8182a840807c61c7ba6c01c7a21ec0081aa9a92
tree967d7e96b5ad6acd62b1c80f6e3678305dc78557
parent8b436fe2f474438991ab4cad8e8ed4d7e0f229c3
xfs: dont use XFS_IS_QUOTA_RUNNING() for option check

When CONFIG_XFS_QUOTA is not defined any quota option is invalid.

Using the macro XFS_IS_QUOTA_RUNNING() as a check if any quota option
has been given is a little misleading so use a simple m_qflags != 0
check to make the intended use more explicit.

Also change to use the IS_ENABLED() macro for the kernel config check.

Signed-off-by: Ian Kent <raven@themaw.net>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_super.c