All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fs/sysv: Don't round down address for kunmap_flush_on_unmap()
@ 2023-03-06 12:51 Fabio M. De Francesco
  2023-03-06 17:27 ` Al Viro
  0 siblings, 1 reply; 3+ messages in thread
From: Fabio M. De Francesco @ 2023-03-06 12:51 UTC (permalink / raw)
  To: Christian Brauner, Dave Chinner, Al Viro, Matthew Wilcox (Oracle),
	Fabio M. De Francesco, linux-kernel
  Cc: Ira Weiny

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>
---
 fs/sysv/dir.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-03-07 12:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-06 12:51 [PATCH] fs/sysv: Don't round down address for kunmap_flush_on_unmap() Fabio M. De Francesco
2023-03-06 17:27 ` Al Viro
2023-03-07 12:22   ` Fabio M. De Francesco

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.