Skip to content

Commit

Permalink
fs/sysv: Don't round down address for kunmap_flush_on_unmap()
Browse files Browse the repository at this point in the history
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 88d7b12 ("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>
  • Loading branch information
xp4ns3 authored and Al Viro committed Mar 13, 2023
1 parent eeac8ed commit 8ad77c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/sysv/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 8ad77c5

Please sign in to comment.