]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5c16bf232b3c8ad9dffc65c5d6f9100aa4070ec0
tree721667f7bf34e42044f5da5411fb007761755960
parente60f2d86ed0fb3c071b42f2cbcbec49e5469c224
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