Skip to content

Commit

Permalink
tmpfs: Add an implementation of fsyncdata
Browse files Browse the repository at this point in the history
fsyncdata provides fsync/writeback-like semantics like regular
writeback-needing filesystems, and allows us to pass tests/emulate
fsync/msync/fsyncdata as required.

Signed-off-by: Pedro Falcato <[email protected]>
  • Loading branch information
heatd committed Jul 23, 2024
1 parent 35a68c8 commit 5d0d10f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kernel/kernel/fs/tmpfs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,8 @@ struct file_ops tmpfs_fops = {.read = nullptr,
.writepage = tmpfs_writepage,
.prepare_write = tmpfs_prepare_write,
.read_iter = filemap_read_iter,
.write_iter = filemap_write_iter};
.write_iter = filemap_write_iter,
.fsyncdata = filemap_writepages};

static void tmpfs_free_page(struct vm_object *vmo, struct page *page)
{
Expand Down

0 comments on commit 5d0d10f

Please sign in to comment.