mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
Kernel: Don't rewrite the whole file on sys$msync
This commit is contained in:
parent
259f78545a
commit
c7b90fa7d3
Notes:
sideshowbarker
2024-07-17 23:15:58 +09:00
Author: https://github.com/Hendiadyoin1
Commit: c7b90fa7d3
Pull-request: https://github.com/SerenityOS/serenity/pull/10957
Reviewed-by: https://github.com/Dexesttp
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