diff options
| author | Steven Whitehouse <swhiteho@redhat.com> | 2006-09-28 08:29:59 -0400 |
|---|---|---|
| committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-09-28 08:29:59 -0400 |
| commit | 185a257f2f73bcd89050ad02da5bedbc28fc43fa (patch) | |
| tree | 5e32586114534ed3f2165614cba3d578f5d87307 /include/linux/highmem.h | |
| parent | 3f1a9aaeffd8d1cbc5ab9776c45cbd66af1c9699 (diff) | |
| parent | a77c64c1a641950626181b4857abb701d8f38ccc (diff) | |
Merge branch 'master' into gfs2
Diffstat (limited to 'include/linux/highmem.h')
| -rw-r--r-- | include/linux/highmem.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/highmem.h b/include/linux/highmem.h index 85ce7ef9a512..fd7d12daa94f 100644 --- a/include/linux/highmem.h +++ b/include/linux/highmem.h | |||
| @@ -24,11 +24,15 @@ static inline void flush_kernel_dcache_page(struct page *page) | |||
| 24 | 24 | ||
| 25 | /* declarations for linux/mm/highmem.c */ | 25 | /* declarations for linux/mm/highmem.c */ |
| 26 | unsigned int nr_free_highpages(void); | 26 | unsigned int nr_free_highpages(void); |
| 27 | extern unsigned long totalhigh_pages; | ||
| 27 | 28 | ||
| 28 | #else /* CONFIG_HIGHMEM */ | 29 | #else /* CONFIG_HIGHMEM */ |
| 29 | 30 | ||
| 30 | static inline unsigned int nr_free_highpages(void) { return 0; } | 31 | static inline unsigned int nr_free_highpages(void) { return 0; } |
| 31 | 32 | ||
| 33 | #define totalhigh_pages 0 | ||
| 34 | |||
| 35 | #ifndef ARCH_HAS_KMAP | ||
| 32 | static inline void *kmap(struct page *page) | 36 | static inline void *kmap(struct page *page) |
| 33 | { | 37 | { |
| 34 | might_sleep(); | 38 | might_sleep(); |
| @@ -41,6 +45,7 @@ static inline void *kmap(struct page *page) | |||
| 41 | #define kunmap_atomic(addr, idx) do { } while (0) | 45 | #define kunmap_atomic(addr, idx) do { } while (0) |
| 42 | #define kmap_atomic_pfn(pfn, idx) page_address(pfn_to_page(pfn)) | 46 | #define kmap_atomic_pfn(pfn, idx) page_address(pfn_to_page(pfn)) |
| 43 | #define kmap_atomic_to_page(ptr) virt_to_page(ptr) | 47 | #define kmap_atomic_to_page(ptr) virt_to_page(ptr) |
| 48 | #endif | ||
| 44 | 49 | ||
| 45 | #endif /* CONFIG_HIGHMEM */ | 50 | #endif /* CONFIG_HIGHMEM */ |
| 46 | 51 | ||
