]> git.baikalelectronics.ru Git - 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)
commit68145193b1baf05924c373fbfa262de086c7cda7
treed2317468e6d0c47eac77755f30754ccf8d363e0f
parent7bf4ae751568bb0b97ee8c28d9a3d778da603c61
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