]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitaf7c9ea4b736f4f7be627768652e079739b7b6b6
tree5fcc7c804a490d97abe89677b04484b6a2b08398
parent6763247ab7d0b5dc44225c67e45b55e225b38a72
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