xfs: show the proper user quota options
authorKaixu Xia <kaixuxia@tencent.com>
Fri, 4 Dec 2020 00:46:50 +0000 (16:46 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 9 Dec 2020 17:49:38 +0000 (09:49 -0800)
commit237d7887ae723af7d978e8b9a385fdff416f357b
tree5fcc7c804a490d97abe89677b04484b6a2b08398
parentafbd914776db9c035dbe2afa6badb9955ae52492
xfs: show the proper user quota options

The quota option 'usrquota' should be shown if both the XFS_UQUOTA_ACCT
and XFS_UQUOTA_ENFD flags are set. The option 'uqnoenforce' should be
shown when only the XFS_UQUOTA_ACCT flag is set. The current code logic
seems wrong, Fix it and show proper options.

Signed-off-by: Kaixu Xia <kaixuxia@tencent.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_super.c