Re: Purpose of block reserves

2010-12-10 Thread Arne Jansen
Arne Jansen wrote: > > while reading btrfs source code, I try to make sense of the various uses > of block reserves. The working theory is as follows: Since there have been no protests, I added this information to the wiki, section "Code documentation". -- Arne > > 1. Every operation has to re

Purpose of block reserves

2010-12-09 Thread Arne Jansen
Hi, while reading btrfs source code, I try to make sense of the various uses of block reserves. The working theory is as follows: 1. Every operation has to reserve upfront every single byte it needs to complete its operation fully. 2. If an operation cannot determine how much space it will nee