From eeb2bb68f8055786341920c651ed6180ae056cdc Mon Sep 17 00:00:00 2001 From: "Darrick J. Wong" Date: Wed, 10 Jun 2015 20:08:33 -0400 Subject: [PATCH] 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 --- lib/ext2fs/undo_io.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/ext2fs/undo_io.c b/lib/ext2fs/undo_io.c index b9294c3..492d226 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; } } -- 1.8.3.1