Thread (3 messages) 3 messages, 2 authors, 2012-09-27

Re: [PATCH] Btrfs: fix wrong calculation of the available space when reserving the space

From: Josef Bacik <hidden>
Date: 2012-09-27 13:16:25

On Thu, Sep 27, 2012 at 03:09:15AM -0600, Miao Xie wrote:
According to the comment, we can overcommit the space up to 1/2 of the total
disk space, or we just can overcommit up to 1/8. But the code was written
reversedly. Fix it.
Sorry the comment is wrong, I was actually just looking at this the other day
:).  Basically we want non-flushers to be able to overcommit more to give those
guys more of a chance of being able to make an allocation, but we want flushers
to not be able to overcommit too much since they are allowed to make more
headroom, so the logic is right, the comment is wrong.  Thanks,

Josef
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help