ext4: remove map_from_cluster from ext4_ext_map_blocks
authorEric Whitney <enwlinux@gmail.com>
Wed, 11 Mar 2020 20:51:25 +0000 (16:51 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 14 Mar 2020 18:43:14 +0000 (14:43 -0400)
commit2971148d0fecedcbd594ff2f2784496bdc7a7ffa
tree721667f7bf34e42044f5da5411fb007761755960
parent34990461342fc9aba806bd941653b72c89dd73a2
ext4: remove map_from_cluster from ext4_ext_map_blocks

We can use the variable allocated_clusters rather than map_from_clusters
to control reserved block/cluster accounting in ext4_ext_map_blocks.
This eliminates a variable and associated code and improves readability
a little.

Reviewed-by: Ritesh Harjani <riteshh@linux.ibm.com>
Signed-off-by: Eric Whitney <enwlinux@gmail.com>
Link: https://lore.kernel.org/r/20200311205125.25061-1-enwlinux@gmail.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/extents.c