diff options
| -rw-r--r-- | xlators/features/quota/src/quota.c | 6 | 
1 files changed, 2 insertions, 4 deletions
diff --git a/xlators/features/quota/src/quota.c b/xlators/features/quota/src/quota.c index 2812a2b13..416d9ce65 100644 --- a/xlators/features/quota/src/quota.c +++ b/xlators/features/quota/src/quota.c @@ -3561,11 +3561,9 @@ quota_statfs_cbk (call_frame_t *frame, void *cookie, xlator_t *this,                  buf->f_blocks = blocks;                  avail = buf->f_blocks - usage; -                avail = (avail >= 0) ? avail : 0; +                avail = max (avail, 0); -                if (buf->f_bfree > avail) { -                        buf->f_bfree = avail; -                } +                buf->f_bfree = avail;                  /*                   * We have to assume that the total assigned quota                   * won't cause us to dip into the reserved space,  | 
