We have needed this for our page-cache based filesystem development as
well. Both the memory pressure callback and the cache size are hacked
into one of our development filesystems at this point, and it is possible
to force OOM on the system. Having a callback is the only way to "play
nice" with cached pages.
I think NWFS has the same need as well...
Cheers, Andreas
--
Andreas Dilger \ "If a man ate a pound of pasta and a pound of antipasto,
\ would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/ -- Dogbert
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/