diff options
author | David Howells <[email protected]> | 2009-04-03 16:42:35 +0100 |
---|---|---|
committer | David Howells <[email protected]> | 2009-04-03 16:42:35 +0100 |
commit | 03fb3d2af96c2783c3a5bc03f3d984cf422f0e69 (patch) | |
tree | 6618f82f8be26ba2c7ac38d6e6e16befc8e1140f /Documentation/filesystems/caching/netfs-api.txt | |
parent | 8f0aa2f25b31ba27db84259141e52ee6ec0d2820 (diff) |
FS-Cache: Release page->private after failed readahead
The attached patch causes read_cache_pages() to release page-private data on a
page for which add_to_page_cache() fails. If the filler function fails, then
the problematic page is left attached to the pagecache (with appropriate flags
set, one presumes) and the remaining to-be-attached pages are invalidated and
discarded. This permits pages with caching references associated with them to
be cleaned up.
The invalidatepage() address space op is called (indirectly) to do the honours.
Signed-off-by: David Howells <[email protected]>
Acked-by: Steve Dickson <[email protected]>
Acked-by: Trond Myklebust <[email protected]>
Acked-by: Rik van Riel <[email protected]>
Acked-by: Al Viro <[email protected]>
Tested-by: Daire Byrne <[email protected]>
Diffstat (limited to 'Documentation/filesystems/caching/netfs-api.txt')
0 files changed, 0 insertions, 0 deletions