aboutsummaryrefslogtreecommitdiff
path: root/arch/um/kernel/physmem.c
diff options
context:
space:
mode:
authorBenjamin Berg <[email protected]>2024-11-03 16:05:04 +0100
committerJohannes Berg <[email protected]>2024-11-07 17:36:30 +0100
commit37c691151e52f7762afa147ffb6e412ee0b5e8ac (patch)
treeddbdbbae8c844ebb14de82beacb1415db1c9c229 /arch/um/kernel/physmem.c
parent2f278b59574ae222a14e4ae59964cb47edfeadd1 (diff)
um: remove file sync for stub data
There is no need to sync the stub code to "disk" for the other process to see the correct memory. Drop the fsync there and remove the helper function. Signed-off-by: Benjamin Berg <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Johannes Berg <[email protected]>
Diffstat (limited to 'arch/um/kernel/physmem.c')
-rw-r--r--arch/um/kernel/physmem.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/um/kernel/physmem.c b/arch/um/kernel/physmem.c
index d60df3626727..a74f17b033c4 100644
--- a/arch/um/kernel/physmem.c
+++ b/arch/um/kernel/physmem.c
@@ -101,7 +101,6 @@ void __init setup_physmem(unsigned long start, unsigned long reserve_end,
*/
os_seek_file(physmem_fd, __pa(__syscall_stub_start));
os_write_file(physmem_fd, __syscall_stub_start, PAGE_SIZE);
- os_fsync_file(physmem_fd);
memblock_add(__pa(start), len);
memblock_reserve(__pa(start), reserve);