aops.h (e5451c8f8330e03ad3cfa16048b4daf961af434f) | aops.h (09cbfeaf1a5a67bfb3201e0c83c810cecb2efa5a) |
---|---|
1/** 2 * aops.h - Defines for NTFS kernel address space operations and page cache 3 * handling. Part of the Linux-NTFS project. 4 * 5 * Copyright (c) 2001-2004 Anton Altaparmakov 6 * Copyright (c) 2002 Richard Russon 7 * 8 * This program/include file is free software; you can redistribute it and/or --- 26 unchanged lines hidden (view full) --- 35 * ntfs_unmap_page - release a page that was mapped using ntfs_map_page() 36 * @page: the page to release 37 * 38 * Unpin, unmap and release a page that was obtained from ntfs_map_page(). 39 */ 40static inline void ntfs_unmap_page(struct page *page) 41{ 42 kunmap(page); | 1/** 2 * aops.h - Defines for NTFS kernel address space operations and page cache 3 * handling. Part of the Linux-NTFS project. 4 * 5 * Copyright (c) 2001-2004 Anton Altaparmakov 6 * Copyright (c) 2002 Richard Russon 7 * 8 * This program/include file is free software; you can redistribute it and/or --- 26 unchanged lines hidden (view full) --- 35 * ntfs_unmap_page - release a page that was mapped using ntfs_map_page() 36 * @page: the page to release 37 * 38 * Unpin, unmap and release a page that was obtained from ntfs_map_page(). 39 */ 40static inline void ntfs_unmap_page(struct page *page) 41{ 42 kunmap(page); |
43 page_cache_release(page); | 43 put_page(page); |
44} 45 46/** 47 * ntfs_map_page - map a page into accessible memory, reading it if necessary 48 * @mapping: address space for which to obtain the page 49 * @index: index into the page cache for @mapping of the page to map 50 * 51 * Read a page from the page cache of the address space @mapping at position --- 56 unchanged lines hidden --- | 44} 45 46/** 47 * ntfs_map_page - map a page into accessible memory, reading it if necessary 48 * @mapping: address space for which to obtain the page 49 * @index: index into the page cache for @mapping of the page to map 50 * 51 * Read a page from the page cache of the address space @mapping at position --- 56 unchanged lines hidden --- |