diff options
author | Kotresh HR <[email protected]> | 2021-11-10 23:30:21 +0530 |
---|---|---|
committer | Ilya Dryomov <[email protected]> | 2022-01-13 13:40:06 +0100 |
commit | 8e55ba8caae5cd380b1c9c81a426602a667e110e (patch) | |
tree | 34504e35db1145d0a16e17f87e1babd53c1f2608 /drivers/usb/cdns3/cdns3-trace.c | |
parent | adbed05ed62d1f3b6f6c5cb88ec52c1ffafc0fd9 (diff) |
ceph: Fix incorrect statfs report for small quota
Problem:
The statfs reports incorrect free/available space for quota less then
CEPH_BLOCK size (4M).
Solution:
For quota less than CEPH_BLOCK size, smaller block size of 4K is used.
But if quota is less than 4K, it is decided to go with binary use/free
of 4K block. For quota size less than 4K size, report the
total=used=4K,free=0 when quota is full and total=free=4K,used=0
otherwise.
Signed-off-by: Kotresh HR <[email protected]>
Reviewed-by: Jeff Layton <[email protected]>
Signed-off-by: Ilya Dryomov <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-trace.c')
0 files changed, 0 insertions, 0 deletions