Commit 8ad77c57 authored by Fabio M. De Francesco's avatar Fabio M. De Francesco Committed by Al Viro

fs/sysv: Don't round down address for kunmap_flush_on_unmap()

The kernel virtual address passed to kunmap_flush_on_unmap() has no more
any need to be rounded down.

Therefore, delete the rounding down of "page_addr" when passed to
kunmap_local() in dir_put_page().

Don't backport without commit 88d7b120 ("highmem: round down the
address passed to kunmap_flush_on_unmap()").

Cc: Ira Weiny <ira.weiny@intel.com>
Suggested-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarFabio M. De Francesco <fmdefrancesco@gmail.com>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent eeac8ede
......@@ -30,7 +30,7 @@ const struct file_operations sysv_dir_operations = {
inline void dir_put_page(struct page *page, void *page_addr)
{
kunmap_local((void *)((unsigned long)page_addr & PAGE_MASK));
kunmap_local(page_addr);
put_page(page);
}
......
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