]> git.baikalelectronics.ru Git - kernel.git/commit
dquot: Detect partial write error to quota file in write_blk() and add printk_ratelim...
authorJiaying Zhang <jiayingz@google.com>
Mon, 17 May 2010 16:36:03 +0000 (18:36 +0200)
committerJan Kara <jack@suse.cz>
Fri, 21 May 2010 17:30:49 +0000 (19:30 +0200)
commit55e2e04c7f543bebca1bdc765c2a7c99e46168c2
treee5561fce158ea6f17406f8f17871af0c61d5cbd5
parentdaaa43d2adb184091301e29a2ff6bf5f4d3d7fd1
dquot: Detect partial write error to quota file in write_blk() and add printk_ratelimit for quota error messages

This patch changes quota_tree.c:write_blk() to detect error caused by partial
write to quota file and add a macro to limit control printed quota error
messages so we won't fill up dmesg with a corrupted quota file.

Signed-off-by: Jiaying Zhang <jiayingz@google.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/quota/quota_tree.c
fs/quota/quota_tree.h
fs/quota/quota_v2.c