udf: Fix lost indirect extent block
authorJan Kara <jack@suse.cz>
Wed, 23 Dec 2015 17:05:03 +0000 (18:05 +0100)
committerJan Kara <jack@suse.cz>
Wed, 23 Dec 2015 17:05:03 +0000 (18:05 +0100)
commit6c37157874aa2b153b722868bd984002fbcff6bb
tree550ce65d53c314bf62a71c31e423c5bdc47b4712
parentfcea62babc8100aee79c716c81203c6d105b2da0
udf: Fix lost indirect extent block

When inode ends with empty indirect extent block and we extended that
file, udf_do_extend_file() ended up just overwriting pointer to it with
another extent and thus effectively leaking the block and also
corruptiong length of allocation descriptors.

Fix the problem by properly following into next indirect extent when it
is present.

Signed-off-by: Jan Kara <jack@suse.cz>
fs/udf/inode.c