rename write_on_buffer to write_on_rambuffer

Signed-off-by: Akira Hayakawa <ruby.wktk@gmail.com>
Save commit

Signed-off-by: Akira Hayakawa <ruby.wktk@gmail.com>
Test commit

Signed-off-by: Akira Hayakawa <ruby.wktk@gmail.com>
Impl __append_log (no compile)

Signed-off-by: Akira Hayakawa <ruby.wktk@gmail.com>
Save commit

Signed-off-by: Akira Hayakawa <ruby.wktk@gmail.com>
Save commit: on the way find_min_id_plog

Signed-off-by: Akira Hayakawa <ruby.wktk@gmail.com>
Save commit

long way to go... (sigh..)
Save commit: clear persistent device implemented
Save commit
Save commit: read_plog_t1 implemented

I am tired...

Signed-off-by: Akira Hayakawa <ruby.wktk@gmail.com>
Save commit: Haha, I am high!

Signed-off-by: Akira Hayakawa <ruby.wktk@gmail.com>
Save commit: implement rebuild_rambuf()

rebuild_rambuf() is to rebuild a rambuffer from a plog sequence
before replayin the log on the cache device we shall
flush out all the plogs on the persistent logging device.

writeboost.h is modified: add rebuild_rambuf()

care to refactor by relocating the functions;
logically unclear now.

Signed-off-by: Akira Hayakawa <ruby.wktk@gmail.com>
Compile OK

Signed-off-by: Akira Hayakawa <ruby.wktk@gmail.com>
Modified Test Scripts

Signed-off-by: Akira Hayakawa <ruby.wktk@gmail.com>
test 3 passed

Signed-off-by: Akira Hayakawa <ruby.wktk@gmail.com>
change DMERR -> WBERR at approiate locations

Signed-off-by: Akira Hayakawa <ruby.wktk@gmail.com>
factor out might_queue_current_buffer()

Signed-off-by: Akira Hayakawa <ruby.wktk@gmail.com>
Add comment on why we set the seg->length to 1 after forcibly flushing
the buffer

Signed-off-by: Akira Hayakawa <ruby.wktk@gmail.com>
buggy commit: should fix.

Signed-off-by: Akira Hayakawa <ruby.wktk@gmail.com>
fixing now

Signed-off-by: Akira Hayakawa <ruby.wktk@gmail.com>