summaryrefslogtreecommitdiff
path: root/arch/um/os-Linux
diff options
context:
space:
mode:
authorBenjamin Berg <benjamin.berg@intel.com>2024-11-03 18:05:04 +0300
committerJohannes Berg <johannes.berg@intel.com>2024-11-07 19:36:30 +0300
commit37c691151e52f7762afa147ffb6e412ee0b5e8ac (patch)
treeddbdbbae8c844ebb14de82beacb1415db1c9c229 /arch/um/os-Linux
parent2f278b59574ae222a14e4ae59964cb47edfeadd1 (diff)
downloadlinux-37c691151e52f7762afa147ffb6e412ee0b5e8ac.tar.xz
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 <benjamin.berg@intel.com> Link: https://patch.msgid.link/20241103150506.1367695-3-benjamin@sipsolutions.net Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'arch/um/os-Linux')
-rw-r--r--arch/um/os-Linux/file.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/um/os-Linux/file.c b/arch/um/os-Linux/file.c
index f1d03cf3957f..a0d01c68ce3e 100644
--- a/arch/um/os-Linux/file.c
+++ b/arch/um/os-Linux/file.c
@@ -255,12 +255,6 @@ void os_close_file(int fd)
{
close(fd);
}
-int os_fsync_file(int fd)
-{
- if (fsync(fd) < 0)
- return -errno;
- return 0;
-}
int os_seek_file(int fd, unsigned long long offset)
{