@@ -328,11 +328,11 @@ struct btrfs_fs_devices {
*/
struct btrfs_device *latest_dev;
- /* all of the devices in the FS, protected by a mutex
- * so we can safely walk it to write out the supers without
- * worrying about add/remove by the multi-device code.
- * Scrubbing super can kick off supers writing by holding
- * this mutex lock.
+ /*
+ * All of the devices in the FS, protected by a mutex so we can safely
+ * walk it to write out the supers without worrying about add/remove by
+ * the multi-device code. Scrubbing super can kick off supers writing by
+ * holding this mutex lock.
*/
struct mutex device_list_mutex;
@@ -341,21 +341,24 @@ struct btrfs_fs_devices {
/*
* Devices which can satisfy space allocation. Protected by
- * chunk_mutex
+ * chunk_mutex.
*/
struct list_head alloc_list;
struct list_head seed_list;
+ /* Count fs-devices opened. */
int opened;
- /* set when we find or add a device that doesn't have the
- * nonrot flag set
+ /*
+ * Set when we find or add a device that doesn't have the nonrot flag
+ * set.
*/
bool rotating;
- /* Devices support TRIM/discard commands */
+ /* Devices support TRIM/discard commands. */
bool discardable;
bool fsid_change;
+ /* fsid is a seed filesystem. */
bool seeding;
struct btrfs_fs_info *fs_info;
@@ -367,7 +370,7 @@ struct btrfs_fs_devices {
enum btrfs_chunk_allocation_policy chunk_alloc_policy;
- /* Policy used to read the mirrored stripes */
+ /* Policy used to read the mirrored stripes. */
enum btrfs_read_policy read_policy;
};
(No functional changes.) Signed-off-by: Anand Jain <anand.jain@oracle.com> --- v2: New patch. Part of this is from v1:patch1. fs/btrfs/volumes.h | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-)