]> git.baikalelectronics.ru Git - kernel.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)
commit6456d7799e751ecb7edfaee84c55d56758bc0ec0
tree9b868ae84e7d0168826c330e84697950cbc41807
parent19d9f36d273627146496ba32b34e638d03019cbd
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