1
0
Files
linux/include/linux
Dmitry Monakhov c469070aea quota: manage reserved space when quota is not active [v2]
Since we implemented generic reserved space management interface,
then it is possible to account reserved space even when quota
is not active (similar to i_blocks/i_bytes).

Without this patch following testcase result in massive comlain from
WARN_ON in dquot_claim_space()

TEST_CASE:
mount /dev/sdb /mnt -oquota
dd if=/dev/zero of=/mnt/test bs=1M count=1
quotaon /mnt
# fs_reserved_spave == 1Mb
# quota_reserved_space == 0, because quota was disabled
dd if=/dev/zero of=/mnt/test seek=1 bs=1M count=1
# fs_reserved_spave == 2Mb
# quota_reserved_space == 1Mb
sync  # ->dquot_claim_space() -> WARN_ON

Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Signed-off-by: Jan Kara <jack@suse.cz>
2010-03-05 00:20:21 +01:00
..
2010-02-28 23:55:20 -08:00
2010-03-01 15:11:32 -05:00
2010-02-18 14:08:38 -08:00
2010-02-17 16:35:17 -08:00
2010-02-22 16:17:00 -08:00
2010-02-17 18:28:05 +01:00
2010-02-19 15:52:40 -05:00
2010-02-14 07:13:47 -07:00
2010-02-16 13:38:56 +09:00
2010-03-02 03:05:05 -08:00
2010-02-18 15:43:09 -08:00