xfs: change available ranges of softlimit and hardlimit in quota check
authorMitsuo Hayasaka <mitsuo.hayasaka.hu@hitachi.com>
Mon, 6 Feb 2012 12:50:07 +0000 (12:50 +0000)
committerBen Myers <bpm@sgi.com>
Tue, 21 Feb 2012 16:12:43 +0000 (10:12 -0600)
commit20f12d8ac01917d96860f352f67eddd912df0afb
tree4923e5efeaa4a00121cb7f7617de000484e300e8
parent05293485a0b6b1f803e8a3c0ff188c38f6969985
xfs: change available ranges of softlimit and hardlimit in quota check

In general, quota allows us to use disk blocks and inodes up to each
limit, that is, they are available if they don't exceed their limitations.
Current xfs sets their available ranges to lower than them except disk
inode quota check. So, this patch changes the ranges to not beyond them.

Signed-off-by: Mitsuo Hayasaka <mitsuo.hayasaka.hu@hitachi.com>
Cc: Ben Myers <bpm@sgi.com>
Cc: Alex Elder <elder@kernel.org>
Cc: Christoph Hellwig <hch@lst.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Mark Tinguely <tinguely@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
fs/xfs/xfs_dquot.c
fs/xfs/xfs_log_recover.c
fs/xfs/xfs_qm_syscalls.c
fs/xfs/xfs_trans_dquot.c