]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfsprogs: xfs_quota: don't double project block counts
authorAlex Elder <aelder@sgi.com>
Wed, 24 Aug 2011 21:53:42 +0000 (21:53 +0000)
committerAlex Elder <aelder@sgi.com>
Fri, 26 Aug 2011 01:40:34 +0000 (20:40 -0500)
commit7cb2d41b091468e197d3694e9cec5a1140122a05
treeb59f408f57ca3cb9263ba0680ffe70d6abc59724
parent1affe13718816b3404b555b761dfe35660731cc9
xfsprogs: xfs_quota: don't double project block counts

In projects_free_space_data() all of the block counts returned are
doubled.  This was probably a mistaken attempt to convert to or from
512-byte basic block units.  The caller expects the value returned
to be in 512-byte units, which is exactly what the fs_disk_quota
structure holds, so there should be no doubling.

The effect of this bug is that the disk space used by the "df"
xfs_quota command shows block counts twice what they should be.

SGI PV 1015651

Signed-off-by: Alex Elder <aelder@sgi.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
quota/free.c