RE: Which is the proper way to bring in the backing store behind an inode as an struct page?
From: Chen, Kenneth W <hidden>
Date: 2004-07-02 18:07:29
From: Chen, Kenneth W <hidden>
Date: 2004-07-02 18:07:29
Perez-Gonzalez, Inaky wrote on Thursday, July 01, 2004 11:35 PM
Dummy question that has been evading me for the last hours. Can you help? Please bear with me here, I am a little lost in how to deal with inodes and the cache. .... Thus, what I need is a way that given the pair (inode,pgoff) returns to me the 'struct page *' if the thing is cached in memory or pulls it up from swap/file into memory and gets me a 'struct page *'. Is there a way to do this?
find_get_page() might be the one you are looking for. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>