projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe15c26
)
new helper: put_and_unmap_page()
author
Al Viro
<viro@zeniv.linux.org.uk>
Tue, 7 Mar 2023 06:50:53 +0000
(
01:50
-0500)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Tue, 7 Mar 2023 06:50:53 +0000
(
01:50
-0500)
kunmap_local() + put_page(), as done by e.g. ext2 directory handling.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
include/linux/highmem.h
patch
|
blob
|
history
diff --git
a/include/linux/highmem.h
b/include/linux/highmem.h
index
b06254e
..
8fc1008
100644
(file)
--- a/
include/linux/highmem.h
+++ b/
include/linux/highmem.h
@@
-481,4
+481,10
@@
static inline void folio_zero_range(struct folio *folio,
zero_user_segments(&folio->page, start, start + length, 0, 0);
}
+static inline void put_and_unmap_page(struct page *page, void *addr)
+{
+ kunmap_local(addr);
+ put_page(page);
+}
+
#endif /* _LINUX_HIGHMEM_H */