]> git.baikalelectronics.ru Git - kernel.git/commit
quota: Allow negative usage of space and inodes
authorJan Kara <jack@suse.cz>
Wed, 1 Oct 2008 16:21:39 +0000 (18:21 +0200)
committerMark Fasheh <mfasheh@suse.com>
Mon, 5 Jan 2009 16:40:21 +0000 (08:40 -0800)
commit57a248e35cacc940cc26943f1b51206540676cd7
tree4ba9837a5371bb4a84dc27614eaeb4e4772e3eb8
parente1908e49c4d8b6646e6f7764285b59d936c98874
quota: Allow negative usage of space and inodes

For clustered filesystems, it can happen that space / inode usage goes
negative temporarily (because some node is allocating another node
is freeing and they are not completely in sync). So let quota code
allow this and change qsize_t so a signed type so that we don't
underflow the variables.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
fs/dquot.c
include/linux/quota.h