class Writer
Defined at line 28 of file ../../src/storage/f2fs/writeback.h
This class is final because there might be background threads running when its destructor runs
and that would be unsafe if this class had overridden virtual methods that might get called from
those background threads.
Public Methods
void Writer (std::unique_ptr<StorageBufferPool> )
Defined at line 18 of file ../../src/storage/f2fs/writeback.cc
void ~Writer ()
Defined at line 23 of file ../../src/storage/f2fs/writeback.cc
void Writer ()
Defined at line 31 of file ../../src/storage/f2fs/writeback.h
void Writer (const Writer & )
Defined at line 32 of file ../../src/storage/f2fs/writeback.h
Writer & operator= (const Writer & )
Defined at line 33 of file ../../src/storage/f2fs/writeback.h
void Writer (Writer && )
Defined at line 34 of file ../../src/storage/f2fs/writeback.h
Writer & operator= (Writer && )
Defined at line 35 of file ../../src/storage/f2fs/writeback.h
void ScheduleWriteback (fpromise::promise<> task)
It schedules |task| on |writeback_executor_|.
Defined at line 150 of file ../../src/storage/f2fs/writeback.cc
void ScheduleWriteBlocks (sync_completion_t * completion, PageList pages, bool flush)
It inserts |pages| to |pages_|, and calls GetTaskForWriteIO() that makes a task to write
pages out to backing storage. Then, it schedules the task on |executor_|. All tasks execute
in order they are scheduled by |sequencer_|.
Defined at line 154 of file ../../src/storage/f2fs/writeback.cc
void Sync ()
It returns after waiting for the storage operation for all pending pages to complete.
Defined at line 29 of file ../../src/storage/f2fs/writeback.cc