]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: show the proper user quota options
authorKaixu Xia <kaixuxia@tencent.com>
Wed, 12 Apr 2023 04:26:08 +0000 (09:56 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Apr 2023 10:07:37 +0000 (12:07 +0200)
commit98602f83ece6acabb3d3a4359051362b3caf2903
tree7f126c401739a45be53453d751b647229825b666
parent0f6d82e03364c5dfc07e082de0f6e920399a3b32
xfs: show the proper user quota options

commit a7207b54be66bd55dcf6cb08a9838aff68de481a upstream.

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>
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Chandan Babu R <chandan.babu@oracle.com>
Acked-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/xfs/xfs_super.c