btrfs: Fix misleading indentation reported by smatch
authorBart Van Assche <bart.vanassche@wdc.com>
Wed, 20 Jun 2018 17:03:31 +0000 (10:03 -0700)
committerDavid Sterba <dsterba@suse.com>
Mon, 6 Aug 2018 11:12:31 +0000 (13:12 +0200)
This patch avoids that building the BTRFS source code with smatch
triggers complaints about inconsistent indenting.

Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent-tree.c
fs/btrfs/ioctl.c
fs/btrfs/reada.c

index bdd5091433ab47da16b77ef21d4c3b8be46e025b..e0e0f3dad2067b8e86b5459fa9cafaf0214c3708 100644 (file)
@@ -6313,7 +6313,7 @@ static int update_block_group(struct btrfs_trans_handle *trans,
                if (list_empty(&cache->dirty_list)) {
                        list_add_tail(&cache->dirty_list,
                                      &trans->transaction->dirty_bgs);
-                               trans->transaction->num_dirty_bgs++;
+                       trans->transaction->num_dirty_bgs++;
                        btrfs_get_block_group(cache);
                }
                spin_unlock(&trans->transaction->dirty_bgs_lock);
@@ -7568,7 +7568,7 @@ search:
                 * for the proper type.
                 */
                if (!block_group_bits(block_group, flags)) {
-                   u64 extra = BTRFS_BLOCK_GROUP_DUP |
+                       u64 extra = BTRFS_BLOCK_GROUP_DUP |
                                BTRFS_BLOCK_GROUP_RAID1 |
                                BTRFS_BLOCK_GROUP_RAID5 |
                                BTRFS_BLOCK_GROUP_RAID6 |
index b077544b523245c05c6ec53710d4f9d45d1eb641..0c4b9f364e84f9e84bda36cfaeb8285af43815a9 100644 (file)
@@ -2507,8 +2507,8 @@ out:
 static noinline int btrfs_ioctl_ino_lookup(struct file *file,
                                           void __user *argp)
 {
-        struct btrfs_ioctl_ino_lookup_args *args;
-        struct inode *inode;
+       struct btrfs_ioctl_ino_lookup_args *args;
+       struct inode *inode;
        int ret = 0;
 
        args = memdup_user(argp, sizeof(*args));
index 40f1bcef394d75245918dce4cb33b239b0f7935e..4be425f70c2dd1c2d2934683c5d8cf07d6dbcf4c 100644 (file)
@@ -355,7 +355,7 @@ static struct reada_extent *reada_find_extent(struct btrfs_fs_info *fs_info,
                dev = bbio->stripes[nzones].dev;
 
                /* cannot read ahead on missing device. */
-                if (!dev->bdev)
+               if (!dev->bdev)
                        continue;
 
                zone = reada_find_zone(dev, logical, bbio);