summaryrefslogtreecommitdiff
path: root/fs/sysv/dir.c
diff options
context:
space:
mode:
authorFabio M. De Francesco <fmdefrancesco@gmail.com>2023-03-06 13:51:50 +0100
committerAl Viro <viro@zeniv.linux.org.uk>2023-03-12 20:03:34 -0400
commit8ad77c576721bd7f7b24bfd7fcb0a61bcfa1a1a2 (patch)
treee8837139ab78da8c54f429726ec34e1bca2146ed /fs/sysv/dir.c
parenteeac8ede17557680855031c6f305ece2378af326 (diff)
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/dir.c')
-rw-r--r--fs/sysv/dir.c2
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);
}