diff options
author | David Sterba <dsterba@suse.com> | 2022-06-21 18:40:48 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2022-07-25 17:45:39 +0200 |
commit | c1867eb33e15b93bca02b7ecde905e3042d90f22 (patch) | |
tree | 2b2b280ce2b6953f914ce374e19660c9226535cc /fs/btrfs/dev-replace.c | |
parent | ac0677348f3c2373183323f20ccfebe7cb00f9ab (diff) | |
download | linux-stable-c1867eb33e15b93bca02b7ecde905e3042d90f22.tar.gz linux-stable-c1867eb33e15b93bca02b7ecde905e3042d90f22.tar.bz2 linux-stable-c1867eb33e15b93bca02b7ecde905e3042d90f22.zip |
btrfs: clean up chained assignments
The chained assignments may be convenient to write, but make readability
a bit worse as it's too easy to overlook that there are several values
set on the same line while this is rather an exception. Making it
consistent everywhere avoids surprises.
The pattern where inode times are initialized reuses the first value and
the order is mtime, ctime. In other blocks the assignments are expanded
so the order of variables is similar to the neighboring code.
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
-rw-r--r-- | fs/btrfs/dev-replace.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/dev-replace.c b/fs/btrfs/dev-replace.c index a7dd6ba25e99..f43196a893ca 100644 --- a/fs/btrfs/dev-replace.c +++ b/fs/btrfs/dev-replace.c @@ -587,7 +587,8 @@ bool btrfs_finish_block_group_to_copy(struct btrfs_device *srcdev, ASSERT(!IS_ERR(em)); map = em->map_lookup; - num_extents = cur_extent = 0; + num_extents = 0; + cur_extent = 0; for (i = 0; i < map->num_stripes; i++) { /* We have more device extent to copy */ if (srcdev != map->stripes[i].dev) |