summaryrefslogtreecommitdiffstats
path: root/fs/fs_struct.c
diff options
context:
space:
mode:
authorEric Whitney <enwlinux@gmail.com>2020-04-30 14:53:20 -0400
committerTheodore Ts'o <tytso@mit.edu>2020-06-03 23:16:50 -0400
commitbe809e1274ebc043640eeeb287accb7b4a4bcbff (patch)
tree9eb081fdf095f7e043cd1941533ad2dc9410fea1 /fs/fs_struct.c
parent779e26517b3600830fe58933d5f97627711c9435 (diff)
downloadlinux-be809e1274ebc043640eeeb287accb7b4a4bcbff.tar.bz2
ext4: clean up ext4_ext_convert_to_initialized() error handling
If ext4_ext_convert_to_initialized() fails when called within ext4_ext_handle_unwritten_extents(), immediately error out through the exit point at function end. Fix the error handling in the event ext4_ext_convert_to_initialized() returns 0, which it shouldn't do when converting an existing extent. The current code returns the passed in value of allocated (which is likely non-zero) while failing to set m_flags, m_pblk, and m_len. Signed-off-by: Eric Whitney <enwlinux@gmail.com> Link: https://lore.kernel.org/r/20200430185320.23001-5-enwlinux@gmail.com Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/fs_struct.c')
0 files changed, 0 insertions, 0 deletions