Whamcloud - gitweb
libext2fs: remove unnecessary undo file flush calls
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 11 Jun 2015 00:08:33 +0000 (20:08 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 11 Jun 2015 00:08:33 +0000 (20:08 -0400)
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 <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/undo_io.c

index b9294c3..492d226 100644 (file)
@@ -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;
                }
        }