1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:18:11 +00:00

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
parent 259f78545a
commit c7b90fa7d3
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; }