diff options
author | Fabio M. De Francesco <fmdefrancesco@gmail.com> | 2023-03-06 13:51:50 +0100 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2023-03-13 01:03:34 +0100 |
commit | 8ad77c576721bd7f7b24bfd7fcb0a61bcfa1a1a2 (patch) | |
tree | e8837139ab78da8c54f429726ec34e1bca2146ed /fs/sysv | |
parent | Linux 6.3-rc2 (diff) | |
download | linux-8ad77c576721bd7f7b24bfd7fcb0a61bcfa1a1a2.tar.xz linux-8ad77c576721bd7f7b24bfd7fcb0a61bcfa1a1a2.zip |
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 88d7b12068b9 ("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>
Diffstat (limited to 'fs/sysv')
-rw-r--r-- | fs/sysv/dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/sysv/dir.c b/fs/sysv/dir.c index 999bceb99974..e2d26eb78af7 100644 --- a/fs/sysv/dir.c +++ b/fs/sysv/dir.c @@ -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); } |