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:
parent
259f78545a
commit
c7b90fa7d3
3 changed files with 10 additions and 4 deletions
|
@ -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; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue