summaryrefslogtreecommitdiff
path: root/fs/gfs2/incore.h
diff options
context:
space:
mode:
authorAbhi Das <adas@redhat.com>2015-06-02 19:03:04 +0300
committerBob Peterson <rpeterso@redhat.com>2015-06-02 19:03:04 +0300
commit9cde2898d04595c3bf24828822b3ea7acff181dd (patch)
tree65c0471a46f03a5ccf0b6aad9d940701b2a95126 /fs/gfs2/incore.h
parent39a725803beeffeb319261df1ab145ef3c1ea0a1 (diff)
downloadlinux-9cde2898d04595c3bf24828822b3ea7acff181dd.tar.xz
gfs2: limit quota log messages
This patch makes the quota subsystem only report once that a particular user/group has exceeded their allotted quota. Previously, it was possible for a program to continuously try exceeding quota (despite receiving EDQUOT) and in turn trigger gfs2 to issue a kernel log message about quota exceed. In theory, this could get out of hand and flood the log and the filesystem hosting the log files. Signed-off-by: Abhi Das <adas@redhat.com> Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Diffstat (limited to 'fs/gfs2/incore.h')
-rw-r--r--fs/gfs2/incore.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/gfs2/incore.h b/fs/gfs2/incore.h
index 58b75abf6ab2..304a22315448 100644
--- a/fs/gfs2/incore.h
+++ b/fs/gfs2/incore.h
@@ -432,6 +432,7 @@ enum {
QDF_CHANGE = 1,
QDF_LOCKED = 2,
QDF_REFRESH = 3,
+ QDF_QMSG_QUIET = 4,
};
struct gfs2_quota_data {