linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Using page cache without a file system
@ 2001-06-22  3:33 Ho Chak Hung
  2001-06-22 12:49 ` Daniel Phillips
  0 siblings, 1 reply; 2+ messages in thread
From: Ho Chak Hung @ 2001-06-22  3:33 UTC (permalink / raw)
  To: linux-kernel

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/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Using page cache without a file system
  2001-06-22  3:33 Using page cache without a file system Ho Chak Hung
@ 2001-06-22 12:49 ` Daniel Phillips
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Phillips @ 2001-06-22 12:49 UTC (permalink / raw)
  To: Ho Chak Hung, linux-kernel

On Friday 22 June 2001 05:33, Ho Chak Hung wrote:
> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-06-22 12:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-22  3:33 Using page cache without a file system Ho Chak Hung
2001-06-22 12:49 ` Daniel Phillips

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).