journal_dirty_data

Name

journal_dirty_data --  mark a buffer as containing dirty data which needs to be flushed before we can commit the current transaction.

Synopsis

int journal_dirty_data (handle_t * handle, struct buffer_head * bh, int async);

Arguments

handle

transaction

bh

bufferhead to mark

async

flag

Description

The buffer is placed on the transaction's data list and is marked as belonging to the transaction.

If `async' is set then the writebask will be initiated by the caller using submit_bh -> end_buffer_io_async. We put the buffer onto t_async_datalist.

Returns error number or 0 on success.