]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: remove int casts from debug dquot soft limit timer asserts
authorBrian Foster <bfoster@redhat.com>
Fri, 21 Dec 2012 15:45:17 +0000 (10:45 -0500)
committerBen Myers <bpm@sgi.com>
Wed, 16 Jan 2013 22:08:40 +0000 (16:08 -0600)
commit829357b0fc83c6e097872659670586d1fa0e0ae6
tree01a714d7293f62232ce4319b6d29efa1a7e0a2b9
parent5e7ba34c46cc1f853a901013a18d669a020fdfc0
xfs: remove int casts from debug dquot soft limit timer asserts

The int casts here make it easy to trigger an assert with a large
soft limit. For example, set a >4TB soft limit on an empty volume
to reproduce a (0 > -x) comparison due to an overflow of
d_blk_softlimit.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Ben Myers <bpm@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
fs/xfs/xfs_qm_syscalls.c