Whamcloud - gitweb
LU-12758 quota: clear default flag for new ID 08/38808/2
authorHongchao Zhang <hongchao@whamcloud.com>
Tue, 2 Jun 2020 16:20:47 +0000 (09:20 -0700)
committerOleg Drokin <green@whamcloud.com>
Fri, 7 Aug 2020 21:13:24 +0000 (21:13 +0000)
commit07aa6595d18515ae3fa215b79020fe26263098cf
treef048eb0578b00ca81157e12f43e77a1184931aea
parent113c09b155c7a6e02737d6fa4a26562aad440643
LU-12758 quota: clear default flag for new ID

When setting the quota limits as 0 by "lfs setquota", the default
flag won't be cleared if the lquota_entry is just created for some
quota ID at the first time because the quota limits are the same.

This patch is back-ported from the following one:
Lustre-commit: ce86e23b21ccffc395089578c0ca356de219ac88
Lustre-change: https://review.whamcloud.com/36236

Change-Id: I7f44ce0cb13783ca5bede2f55cd0707f1ccbc8ca
Signed-off-by: Hongchao Zhang <hongchao@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/38808
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Wang Shilong <wshilong@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/quota/qmt_handler.c