projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'akpm' (patches from Andrew)
[linux-2.6-microblaze.git]
/
include
/
linux
/
highmem.h
diff --git
a/include/linux/highmem.h
b/include/linux/highmem.h
index
44170f3
..
832b49b
100644
(file)
--- a/
include/linux/highmem.h
+++ b/
include/linux/highmem.h
@@
-332,4
+332,11
@@
static inline void memcpy_to_page(struct page *page, size_t offset,
kunmap_local(to);
}
+static inline void memzero_page(struct page *page, size_t offset, size_t len)
+{
+ char *addr = kmap_atomic(page);
+ memset(addr + offset, 0, len);
+ kunmap_atomic(addr);
+}
+
#endif /* _LINUX_HIGHMEM_H */