Commit 849ad04c authored by Al Viro's avatar Al Viro

new helper: put_and_unmap_page()

kunmap_local() + put_page(), as done by e.g. ext2 directory handling.
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent fe15c26e
......@@ -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 */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment