summaryrefslogtreecommitdiffstats
path: root/fs/quota/quota_tree.c
Commit message (Collapse)AuthorAgeFilesLines
* dquot: Detect partial write error to quota file in write_blk() and add ↵Jiaying Zhang2010-05-211-19/+27
| | | | | | | | | | | 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>
* quota: Make quota stat accounting lockless.Dmitry Monakhov2010-05-211-2/+2
| | | | | | | | | | | | Quota stats is mostly writable data structure. Let's alloc percpu bucket for each value. NOTE: dqstats_read() function is racy against dqstats_{inc,dec} and may return inconsistent value. But this is ok since absolute accuracy is not required. Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org> Signed-off-by: Jan Kara <jack@suse.cz>
* quota: Coding style fixesJan Kara2009-03-261-15/+27
| | | | | | | Wrap long lines, remove assignments from conditions, rewrite two overcomplicated for loops. Signed-off-by: Jan Kara <jack@suse.cz>
* quota: Remove superfluous inlinesJan Kara2009-03-261-3/+3
| | | | | | | Remove inlines of large functions to decrease code size (saved 1543 bytes). Signed-off-by: Jan Kara <jack@suse.cz>
* quota: Remove dqbuf_t and other cleanupsJan Kara2009-03-261-55/+49
| | | | | | | | Remove bogus typedef which is just a definition of char *. Remove unnecessary type casts. Substitute freedqbuf() with kfree. Signed-off-by: Jan Kara <jack@suse.cz>
* quota: Move quota files into separate directoryJan Kara2009-03-261-0/+645
Quota subsystem has more and more files. It's time to create a dir for it. Signed-off-by: Jan Kara <jack@suse.cz>
OpenPOWER on IntegriCloud