]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
btrfs: document some invariants of seed code
authorNikolay Borisov <nborisov@suse.com>
Wed, 12 Aug 2020 14:04:36 +0000 (17:04 +0300)
committerDavid Sterba <dsterba@suse.com>
Wed, 7 Oct 2020 10:06:58 +0000 (12:06 +0200)
commit427c8fddb1296dd013d8af5a4957d9d88fb8ab4e
treed2317468e6d0c47eac77755f30754ccf8d363e0f
parent944d3f9fac61e24e13a056b25974df3831994f29
btrfs: document some invariants of seed code

Without good understanding of how seed devices works it's hard to grok
some of what the code in open_seed_devices or btrfs_prepare_sprout does.

Add comments hopefully reducing some of the cognitive load.

Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c