Kernel: Don't rewrite the whole file on sys$msync

This commit is contained in:
Hendiadyoin1 2021-11-18 15:54:39 +01:00 committed by Andreas Kling
commit c7b90fa7d3
Notes: sideshowbarker 2024-07-17 23:15:58 +09:00
3 changed files with 10 additions and 4 deletions

View file

@ -18,7 +18,7 @@ public:
static ErrorOr<NonnullRefPtr<SharedInodeVMObject>> try_create_with_inode(Inode&);
virtual ErrorOr<NonnullRefPtr<VMObject>> try_clone() override;
ErrorOr<void> sync();
ErrorOr<void> sync(off_t offset_in_pages = 0, size_t pages = -1);
private:
virtual bool is_shared_inode() const override { return true; }