Skip to contentSkip to conversation

Triggering readpages operation

DISCUSSION Layton, Evan J 2 participants 3 messages Jul 25, 2012 – Jul 26, 2012 VFS

lore
Share & tools
lore
#0 lore raw

I'm working on a project at intel and working on a better understanding of "file system" operations specifically triggering readpages. However I have not been able to figure out how to drive or force the file system to use readpages. I had thought that readahead() would allow me to do this but it's not driving readpages and just goes down the readpage path. Any suggestions on the best way to get the file system to trigger this operation?

Thanks,
-evan

#1 lore raw
Quoted 5 lines · Evan J

I'm working on a project at intel and working on a better understanding of "file system" operations specifically triggering readpages. However I have not been able to figure out how to drive or force the file system to use readpages. I had thought that readahead() would allow me to do this but it's not driving readpages and just goes down the readpage path. Any suggestions on the best way to get the file system to trigger this operation?

Thanks,
-evan

Is your bdi->ra_pages value set to 0?

Signature · 1 line
Jeff Layton <[email protected]>
#2 lore raw

No it's showing up as being 32. However I'm not really manipulating anything in a backing_dev_info structure and just taking the defaults so perhaps that's what I'm missing?

-evan

(By the way nice last name :)

Quoted 20 lines · Jeff Layton
Quoted 11 lines · Evan J

I'm working on a project at intel and working on a better understanding of "file system" operations specifically triggering readpages. However I have not been able to figure out how to drive or force the file system to use readpages. I had thought that readahead() would allow me to do this but it's not driving readpages and just goes down the readpage path. Any suggestions on the best way to get the file system to trigger this operation?

Thanks,
-evan

Is your bdi->ra_pages value set to 0?

Signature · 1 line
Jeff Layton <[email protected]>