]> git.baikalelectronics.ru Git - kernel.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)
commit787cf960793320fc7bd17f9c8431bc0b3d3c173a
tree9c8745156d1fbefcf28cf0cf5114ed4c4ef63f4c
parent5631f4e72b8119e7229059beb14404d514b207c1
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