Skip to content

Commit 8ad77c5

Browse files
xp4ns3Al Viro
authored andcommitted
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 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>
1 parent eeac8ed commit 8ad77c5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/sysv/dir.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const struct file_operations sysv_dir_operations = {
3030

3131
inline void dir_put_page(struct page *page, void *page_addr)
3232
{
33-
kunmap_local((void *)((unsigned long)page_addr & PAGE_MASK));
33+
kunmap_local(page_addr);
3434
put_page(page);
3535
}
3636

0 commit comments

Comments
 (0)