]> 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)
commit69aa051fd91cbcd12e1fd40f8fd44858684aa993
treed2317468e6d0c47eac77755f30754ccf8d363e0f
parent50c16e0a9926ed3a64e6fe273dfa1b777a0f7b14
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