From: Jan Kara Date: Wed, 6 Jan 2010 17:03:36 +0000 (+0100) Subject: quota: Fix dquot_transfer for filesystems different from ext4 X-Git-Tag: v2.6.33-rc4~15^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05b5d898235401c489c68e1f3bc5706a29ad5713;p=pandora-kernel.git 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 Signed-off-by: Jan Kara --- Reading git-diff-tree failed