]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
btrfs: add comments for device counts in struct btrfs_fs_devices
authorAnand Jain <anand.jain@oracle.com>
Tue, 5 Oct 2021 20:12:40 +0000 (16:12 -0400)
committerDavid Sterba <dsterba@suse.com>
Tue, 26 Oct 2021 17:08:06 +0000 (19:08 +0200)
commitadd9745adc2fa13e6a6e2c26c78dcb05da031a44
tree9b868ae84e7d0168826c330e84697950cbc41807
parent8e906945c069fbc9377f2748a661ac06d039ea77
btrfs: add comments for device counts in struct btrfs_fs_devices

A bug was was checking a wrong device count before we delete the struct
btrfs_fs_devices in btrfs_rm_device(). To avoid future confusion and
easy reference add a comment about the various device counts that we have
in the struct btrfs_fs_devices.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.h