afs: Fix afs_statfs() to not let the values go below zero
authorDavid Howells <dhowells@redhat.com>
Fri, 1 May 2020 21:06:02 +0000 (22:06 +0100)
committerDavid Howells <dhowells@redhat.com>
Thu, 4 Jun 2020 14:37:58 +0000 (15:37 +0100)
commitf11a016a852f32e9c991baf6a036390eac5b4266
treee3f22ae2effd9687a03c9d7765fe949f7861a320
parent3c4c4075fc61f5c37a0112b1dc8398025dc3e26a
afs: Fix afs_statfs() to not let the values go below zero

Fix afs_statfs() so that the value for f_bavail and f_bfree don't go
"negative" if the number of blocks in use by a volume exceeds the max quota
for that volume.

Signed-off-by: David Howells <dhowells@redhat.com>
fs/afs/super.c