2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-11-23 18:14:04 +08: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:
Fabio M. De Francesco 2023-03-06 13:51:50 +01:00 committed by Al Viro
parent eeac8ede17
commit 8ad77c5767

View File

@ -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);
}