]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9b58f8384c02b809e690fc50acb015bcf5999269
treee3f22ae2effd9687a03c9d7765fe949f7861a320
parentca6b2d186d3761f1ddde2b36c91835efa5c756a1
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