Skip to content

sys_close 去掉主动 flush

StellaOS requested to merge feature/iozone into main
  • 将 sys_close 调整为纯关闭 fd 语义,不再在 close 路径主动调用 flush
  • 同时移除 close 中对 write_protect_file_mappings 的调用,避免在不做写回时无端摘掉 shared file mapping 的写权限
  • 保持 fsync、fdatasync、msync、munmap 等显式写回路径不变
  • 这样可以避免非 regular file 在 close 上走无意义的 flush/write-protect,并让 regular file 的 writeback 更接近懒写策略

Merge request reports