submit_bh

Name

submit_bh -- 

Synopsis

void submit_bh (int rw, struct buffer_head * bh);

Arguments

rw

whether to READ or WRITE, or maybe to READA (read ahead)

bh

The &struct buffer_head which describes the I/O

Description

submit_bh is very similar in purpose to generic_make_request, and uses that function to do most of the work.

The extra functionality provided by submit_bh is to determine b_rsector from b_blocknr and b_size, and to set b_rdev from b_dev. This is is appropriate for IO requests that come from the buffer cache and page cache which (currently) always use aligned blocks.