Whamcloud - gitweb
LU-13043 quota: remove annoying message in osd_declare_inode_qid() 06/36906/5
authorWang Shilong <wshilong@ddn.com>
Tue, 3 Dec 2019 06:32:22 +0000 (14:32 +0800)
committerOleg Drokin <green@whamcloud.com>
Fri, 3 Jan 2020 00:09:31 +0000 (00:09 +0000)
commitb3005155317b27e19c8029e6a9f92e69d0dd905e
treed3c0e7155c2ae0c4135fbeb41482c981b4392cc2
parent02c23a2e851fdebc3e2bde45a51fb043559504ab
LU-13043 quota: remove annoying message in osd_declare_inode_qid()

The admin shouldn't be getting console error messages when a user goes
over quota(this would be happening continuously at some sites).

In some call paths, the "*flags" parameter may be NULL, don't try to
access it in that case.

As a general cleanup, move the QUOTA_FL_* flags over to a named enum
"enum osd_quota_local_flags" so that it is easier to see what this field
actually holds, rather than a totally generic "int *flags" argument that
has to be hunted through the code.

Fixes: d30f9e6b6c5d ("LU-11425 quota: support quota for DoM")
Change-Id: Id5686ecdb8a943e48a2888067e321f83b8569188
Signed-off-by: Wang Shilong <wshilong@ddn.com>
Reviewed-on: https://review.whamcloud.com/36906
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Hongchao Zhang <hongchao@whamcloud.com>
Reviewed-by: Stephan Thiell <sthiell@stanford.edu>
lustre/include/lustre_quota.h
lustre/osd-ldiskfs/osd_internal.h
lustre/osd-ldiskfs/osd_io.c
lustre/osd-ldiskfs/osd_quota.c
lustre/osd-zfs/osd_internal.h
lustre/osd-zfs/osd_io.c
lustre/osd-zfs/osd_quota.c
lustre/quota/lquota_internal.h
lustre/quota/qsd_handler.c