btrfs: add a comment describing delalloc space reservation
authorJosef Bacik <josef@toxicpanda.com>
Tue, 4 Feb 2020 18:18:55 +0000 (13:18 -0500)
committerDavid Sterba <dsterba@suse.com>
Mon, 23 Mar 2020 16:01:27 +0000 (17:01 +0100)
commit6f4ad559ea1cb5c5e78217405e4141c6a5981f86
tree05ae88f85db260595adbaf4bd782636fbef3940d
parent734d8c15df8a6c2e0963e5f4133dfde4acb5fc44
btrfs: add a comment describing delalloc space reservation

delalloc space reservation is tricky because it encompasses both data
and metadata.  Make it clear what each side does, the general flow of
how space is moved throughout the lifetime of a write, and what goes
into the calculations.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/delalloc-space.c