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)
commit1907131bbeabb33db313bad34f3ec1a5faedbd64
treee5561fce158ea6f17406f8f17871af0c61d5cbd5
parentc06bcbfa1ed8daaeb2a262f372b411207891e229
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