mirror of
https://github.com/torvalds/linux.git
synced 2026-09-25 21:21:09 -04:00
This adds support for partial file caching in Coda. Every read, write and mmap informs the userspace cache manager about what part of a file is about to be accessed so that the cache manager can ensure the relevant parts are available before the operation is allowed to proceed. When a read or write operation completes, this is also reported to allow the cache manager to track when partially cached content can be released. If the cache manager does not support partial file caching, or when the entire file has been fetched into the local cache, the cache manager may return an EOPNOTSUPP error to indicate that intent upcalls are no longer necessary until the file is closed. [[email protected]: little whitespace fixup] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Pedro Cuadra <[email protected]> Signed-off-by: Jan Harkes <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>