]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libblkid: minor changes to coding style
authorKarel Zak <kzak@redhat.com>
Mon, 6 Jun 2022 10:14:10 +0000 (12:14 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 6 Jun 2022 10:14:10 +0000 (12:14 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
libblkid/src/superblocks/btrfs.c
libblkid/src/superblocks/ext.c

index f286c0e64d240b6cd7e022aced14d87d6d8afb2f..6e3fb71e40b42f5394fb7ca8fd527229ce9c6c51 100644 (file)
@@ -241,11 +241,13 @@ static int probe_btrfs(blkid_probe pr, const struct blkid_idmag *mag)
                __builtin_clz(le32_to_cpu(bfs->sectorsize));
        blkid_probe_set_fslastblock(pr,
                        le64_to_cpu(bfs->total_bytes) >> sectorsize_log);
-       // The size is calculated without the RAID factor. It could not be
-       // obtained from the superblock as it is property of device tree.
-       // Without the factor we would show fs size with the redundant data. The
-       // acquisition of the factor will require additional parsing of btrfs
-       // tree.
+
+       /* The size is calculated without the RAID factor. It could not be
+        * obtained from the superblock as it is property of device tree.
+        *  Without the factor we would show fs size with the redundant data. The
+        * acquisition of the factor will require additional parsing of btrfs
+        * tree.
+        */
        blkid_probe_set_fssize(pr, le64_to_cpu(bfs->total_bytes));
 
        return 0;
index 96bb31e49abfb1c9e37ab615e6588ab4484aa735..e6d620167ada2bd0e92de1c66238ef9fff935b82 100644 (file)
@@ -199,12 +199,14 @@ static void ext_get_info(blkid_probe pr, int ver, struct ext2_super_block *es)
                ((s_feature_incompat & EXT4_FEATURE_INCOMPAT_64BIT) ?
                (uint64_t) le32_to_cpu(es->s_blocks_count_hi) << 32 : 0);
        blkid_probe_set_fslastblock(pr, fslastblock);
-       // The total number of blocks is taken without substraction of overhead
-       // (journal, metadata). The ext4 has non-trivial overhead calculation
-       // viz. ext4_calculate_overhead(). Thefore, the FSSIZE would show number
-       // slightly higher than the real value (for example, calculated via
-       // statfs()).
-       uint64_t fssize = (uint64_t)block_size*le32_to_cpu(es->s_blocks_count);
+
+       /* The total number of blocks is taken without substraction of overhead
+        * (journal, metadata). The ext4 has non-trivial overhead calculation
+        * viz. ext4_calculate_overhead(). Thefore, the FSSIZE would show number
+        * slightly higher than the real value (for example, calculated via
+        * statfs()).
+        */
+       uint64_t fssize = (uint64_t) block_size * le32_to_cpu(es->s_blocks_count);
        blkid_probe_set_fssize(pr, fssize);
 }