mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-12-29 09:16:33 +00:00
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 88d7b12068
("highmem: round down the
address passed to kunmap_flush_on_unmap()").
Cc: Ira Weiny <ira.weiny@intel.com>
Suggested-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Fabio M. De Francesco <fmdefrancesco@gmail.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
eeac8ede17
commit
8ad77c5767
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user