]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2455481d6b68f46d53cb00b5f2058949eb92f588
tree65c0471a46f03a5ccf0b6aad9d940701b2a95126
parent80257abf007c44e185c3eabb6820888708696ae9
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