Skip to contentSkip to conversation

Using page cache without a file system

DISCUSSION Ho Chak Hung 2 participants 2 messages Jun 22, 2001

lore
Share & tools
lore
#0 lore raw

Hi,

Is it possible to allocate and add pages to the page cache without a underlying file system in Linux 2.4? I know that the host pointer to inode structure inside the address_space structure can be NULL, but does this mean that we can still make use of page cache operations like readpage or writepage if we do not back up the cache with a file system? I am currently developing a driver that wants to make use of the page cache, however, I want to save myself with the heavy load of kmalloc.

Any hint would be greatly appreciated.

Thanks
__________________________________________________________________
Get your own FREE, personal Netscape Webmail account today at http://webmail.netscape.com/

#1 lore raw
Quoted 9 lines · Ho Chak Hung

Is it possible to allocate and add pages to the page cache without a underlying file system in Linux 2.4? I know that the host pointer to inode structure inside the address_space structure can be NULL, but does this mean that we can still make use of page cache operations like readpage or writepage if we do not back up the cache with a file system? I am currently developing a driver that wants to make use of the page cache, however, I want to save myself with the heavy load of kmalloc.

Any hint would be greatly appreciated.

Check out ramfs

--
Daniel