A question about the block_read_full_page()
- From: "JianC.Xie@xxxxxxxxx" <JianC.Xie@xxxxxxxxx>
- Date: 22 May 2007 11:17:06 -0700
Hi, all.
In a test, I need to collect data block retrieving from the disk
into a dedicated file. It needs to collect the block data from disk
for generic file reading but rather for block device. But I found both
ext2_readpage and blkdev_readpage wrapped with block_read_full_page().
So I have to use the block_read_full_page for the next step.
First question : Is there a function only for generic file
reading?
Assume using the block_read_full_page(), Looks at the following
code snippets from block_read_full_page().
/* Stage 3: start the IO */
for (i = 0; i < nr; i++) {
struct buffer_head * bh = arr[i];
if (buffer_uptodate(bh))
end_buffer_io_async(bh, 1);
else
submit_bh(READ, bh);
}
return 0;
It invokes the submit_bh() for every invalid buffer block. But
according to the disk delay mechnism, when the IO completed is depend
on the lower level disk function. What I want is that after the block
data become valid , I need to record the retreival data into a
dedicated file.
So , my second question : Is there a way to acheive this goal?
Thanks a lot.
.
- Prev by Date: A question about the block_read_full_page()
- Next by Date: A question about the block_read_full_page()
- Previous by thread: A question about the block_read_full_page()
- Next by thread: A question about the block_read_full_page()
- Index(es):
Relevant Pages
|