Lines Matching defs:page

3  * aops.h - Defines for NTFS kernel address space operations and page cache
21 * ntfs_unmap_page - release a page that was mapped using ntfs_map_page()
22 * @page: the page to release
24 * Unpin, unmap and release a page that was obtained from ntfs_map_page().
26 static inline void ntfs_unmap_page(struct page *page)
28 kunmap(page);
29 put_page(page);
33 * ntfs_map_page - map a page into accessible memory, reading it if necessary
34 * @mapping: address space for which to obtain the page
35 * @index: index into the page cache for @mapping of the page to map
37 * Read a page from the page cache of the address space @mapping at position
40 * If the page is not in memory it is loaded from disk first using the
42 * and the page is added to the page cache of @mapping in the process.
44 * If the page belongs to an mst protected attribute and it is marked as such
47 * the ntfs record(s) contained in the page are valid or not using one of the
51 * If the page is in high memory it is mapped into memory directly addressible
54 * Finally the page count is incremented, thus pinning the page into place.
56 * The above means that page_address(page) can be used on all pages obtained
57 * with ntfs_map_page() to get the kernel virtual address of the page.
59 * When finished with the page, the caller has to call ntfs_unmap_page() to
60 * unpin, unmap and release the page.
67 * The unlocked and uptodate page is returned on success or an encoded error
72 static inline struct page *ntfs_map_page(struct address_space *mapping,
75 struct page *page = read_mapping_page(mapping, index, NULL);
77 if (!IS_ERR(page))
78 kmap(page);
79 return page;
84 extern void mark_ntfs_record_dirty(struct page *page, const unsigned int ofs);