Commit c0c79c31 authored by Joern Engel's avatar Joern Engel

logfs: fix sync

Rather self-explanatory.
Signed-off-by: default avatarJoern Engel <joern@logfs.org>
parent bba0b5c2
...@@ -224,8 +224,7 @@ int logfs_fsync(struct file *file, struct dentry *dentry, int datasync) ...@@ -224,8 +224,7 @@ int logfs_fsync(struct file *file, struct dentry *dentry, int datasync)
struct super_block *sb = dentry->d_inode->i_sb; struct super_block *sb = dentry->d_inode->i_sb;
struct logfs_super *super = logfs_super(sb); struct logfs_super *super = logfs_super(sb);
/* FIXME: write anchor */ logfs_write_anchor(sb);
super->s_devops->sync(sb);
return 0; return 0;
} }
......
...@@ -387,8 +387,7 @@ static void logfs_init_once(void *_li) ...@@ -387,8 +387,7 @@ static void logfs_init_once(void *_li)
static int logfs_sync_fs(struct super_block *sb, int wait) static int logfs_sync_fs(struct super_block *sb, int wait)
{ {
/* FIXME: write anchor */ logfs_write_anchor(sb);
logfs_super(sb)->s_devops->sync(sb);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment