]> git.karo-electronics.de Git - linux-beck.git/commit
xfs: include reservations in quota reporting
authorChristoph Hellwig <hch@infradead.org>
Mon, 20 Feb 2012 02:28:17 +0000 (02:28 +0000)
committerBen Myers <bpm@sgi.com>
Wed, 29 Feb 2012 20:09:06 +0000 (14:09 -0600)
commit89605011915aec5c6194e53a9f02631d68aea6bc
tree9c8745156d1fbefcf28cf0cf5114ed4c4ef63f4c
parent18535a7e019e6fb9cdcefd43007bc72a67bf99ee
xfs: include reservations in quota reporting

Report all quota usage including the currently pending reservations.  This
avoids the need to flush delalloc space before gathering quota information,
and matches quota enforcement, which already takes the reservations into
account.

This fixes xfstests 270.

Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ben Myers <bpm@sgi.com>
fs/xfs/xfs_qm_bhv.c
fs/xfs/xfs_qm_syscalls.c