gfs2: limit quota log messages
authorAbhi Das <adas@redhat.com>
Tue, 2 Jun 2015 16:03:04 +0000 (11:03 -0500)
committerBob Peterson <rpeterso@redhat.com>
Tue, 2 Jun 2015 16:03:04 +0000 (11:03 -0500)
commit9cde2898d04595c3bf24828822b3ea7acff181dd
tree65c0471a46f03a5ccf0b6aad9d940701b2a95126
parent39a725803beeffeb319261df1ab145ef3c1ea0a1
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>
fs/gfs2/incore.h
fs/gfs2/quota.c