Lines Matching refs:undo_file
130 io_channel undo_file; member
205 retval = io_channel_write_blk64(data->undo_file, in write_undo_indexes()
246 retval = io_channel_write_blk64(data->undo_file, 0, in write_undo_indexes()
257 retval = io_channel_write_blk64(data->undo_file, data->super_blk_num, in write_undo_indexes()
263 retval = io_channel_flush(data->undo_file); in write_undo_indexes()
300 io_channel_set_blksize(data->undo_file, data->tdb_data_size); in undo_setup_tdb()
304 retval = io_channel_read_blk64(data->undo_file, i, 1, in undo_setup_tdb()
308 retval = io_channel_write_blk64(data->undo_file, i, 1, in undo_setup_tdb()
312 retval = io_channel_flush(data->undo_file); in undo_setup_tdb()
337 if (data->undo_file == NULL) { in undo_write_tdb()
424 if ((data_size % data->undo_file->block_size) == 0) in undo_write_tdb()
425 sz = data_size / data->undo_file->block_size; in undo_write_tdb()
459 retval = io_channel_write_blk64(data->undo_file, in undo_write_tdb()
497 static int check_filesystem(struct undo_header *hdr, io_channel undo_file, in check_filesystem() argument
518 retval = io_channel_read_blk64(undo_file, super_block, in check_filesystem()
565 retval = io_channel_read_blk64(data->undo_file, 0, -(int)sizeof(hdr), in try_reopen_undo_file()
586 io_channel_set_blksize(data->undo_file, blocksize); in try_reopen_undo_file()
596 if (check_filesystem(&hdr, data->undo_file, blocksize, super_block, in try_reopen_undo_file()
621 retval = io_channel_read_blk64(data->undo_file, in try_reopen_undo_file()
689 io_channel_close(data->undo_file); in undo_atexit()
746 &data->undo_file); in undo_open()
751 data->undo_file = NULL; in undo_open()
765 if (data->undo_file) { in undo_open()
783 if (data && data->undo_file) in undo_open()
784 io_channel_close(data->undo_file); in undo_open()
816 if (data->undo_file) in undo_close()
817 io_channel_close(data->undo_file); in undo_close()