ext4: remove redundant GET_BLOCKS_CONVERT code
authorEric Whitney <enwlinux@gmail.com>
Thu, 30 Apr 2020 18:53:18 +0000 (14:53 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 4 Jun 2020 03:16:50 +0000 (23:16 -0400)
commitbee6cf00c7f17df27c842c169db31d53bdd775ba
tree561dd6ae29fd58579ef64b955bf4b752c505c25e
parentee802f86899341d835c629a4ad9607135f1b71a2
ext4: remove redundant GET_BLOCKS_CONVERT code

Remove the redundant code assigning values to ext4_map_blocks components
in ext4_ext_handle_unwritten_extents() for the EXT4_GET_BLOCKS_CONVERT
case, using the code at the function exit instead.  Clean up and reorder
that code to eliminate more redundancy and improve readability.

Signed-off-by: Eric Whitney <enwlinux@gmail.com>
Link: https://lore.kernel.org/r/20200430185320.23001-3-enwlinux@gmail.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/extents.c