Commit c0c79c31c9d5fcc19812c6c35f842baf50ee788a

Authored by Joern Engel
1 parent bba0b5c2c2

logfs: fix sync

Rather self-explanatory.

Signed-off-by: Joern Engel <joern@logfs.org>

Showing 2 changed files with 2 additions and 4 deletions Side-by-side Diff

... ... @@ -224,8 +224,7 @@
224 224 struct super_block *sb = dentry->d_inode->i_sb;
225 225 struct logfs_super *super = logfs_super(sb);
226 226  
227   - /* FIXME: write anchor */
228   - super->s_devops->sync(sb);
  227 + logfs_write_anchor(sb);
229 228 return 0;
230 229 }
231 230  
... ... @@ -387,8 +387,7 @@
387 387  
388 388 static int logfs_sync_fs(struct super_block *sb, int wait)
389 389 {
390   - /* FIXME: write anchor */
391   - logfs_super(sb)->s_devops->sync(sb);
  390 + logfs_write_anchor(sb);
392 391 return 0;
393 392 }
394 393