OpenCloudOS-Kernel/fs/quota
Jan Kara 05b5d89823 quota: Fix dquot_transfer for filesystems different from ext4
Commit fd8fbfc1 modified the way we find amount of reserved space
belonging to an inode. The amount of reserved space is checked
from dquot_transfer and thus inode_reserved_space gets called
even for filesystems that don't provide get_reserved_space callback
which results in a BUG.

Fix the problem by checking get_reserved_space callback and return 0 if
the filesystem does not provide it.

CC: Dmitry Monakhov <dmonakhov@openvz.org>
Signed-off-by: Jan Kara <jack@suse.cz>
2010-01-11 13:06:41 +01:00
..
Kconfig quota: Implement quota format with 64-bit space and inode limits 2009-12-10 15:02:54 +01:00
Makefile quota: remove obsolete comments in fs/quota/Makefile 2009-04-27 16:49:52 +02:00
dquot.c quota: Fix dquot_transfer for filesystems different from ext4 2010-01-11 13:06:41 +01:00
quota.c VFS: Export dquot_send_warning 2009-12-03 11:53:02 +00:00
quota_tree.c quota: Coding style fixes 2009-03-26 02:18:38 +01:00
quota_tree.h
quota_v1.c const: struct quota_format_ops 2009-12-10 15:02:51 +01:00
quota_v2.c quota: Improve checking of quota file header 2009-12-23 13:44:13 +01:00
quotaio_v1.h
quotaio_v2.h quota: Implement quota format with 64-bit space and inode limits 2009-12-10 15:02:54 +01:00