From: Darrick J. Wong Date: Thu, 11 Jun 2015 00:08:33 +0000 (-0400) Subject: libext2fs: remove unnecessary undo file flush calls X-Git-Tag: v1.43-WIP-2016-03-15~97 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eeb2bb68f8055786341920c651ed6180ae056cdc;p=thirdparty%2Fe2fsprogs.git libext2fs: remove unnecessary undo file flush calls Remove all flushes of the undo file except for the one that happens just prior to the file being closed; it seems that the arbitrary flushes aren't sufficiently useful. Signed-off-by: Darrick J. Wong Signed-off-by: Theodore Ts'o --- diff --git a/lib/ext2fs/undo_io.c b/lib/ext2fs/undo_io.c index b9294c360..492d22678 100644 --- a/lib/ext2fs/undo_io.c +++ b/lib/ext2fs/undo_io.c @@ -193,7 +193,6 @@ static errcode_t write_undo_indexes(struct undo_private_data *data, int flush) data->keys_in_block = 0; data->key_blk_num = data->undo_blk_num; data->undo_blk_num++; - flush = 1; } }