logfs: fix sync
Rather self-explanatory. Signed-off-by: Joern Engel <joern@logfs.org>
This commit is contained in:
parent
bba0b5c2c2
commit
c0c79c31c9
2 changed files with 2 additions and 4 deletions
|
@ -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 logfs_super *super = logfs_super(sb);
|
||||
|
||||
/* FIXME: write anchor */
|
||||
super->s_devops->sync(sb);
|
||||
logfs_write_anchor(sb);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -387,8 +387,7 @@ static void logfs_init_once(void *_li)
|
|||
|
||||
static int logfs_sync_fs(struct super_block *sb, int wait)
|
||||
{
|
||||
/* FIXME: write anchor */
|
||||
logfs_super(sb)->s_devops->sync(sb);
|
||||
logfs_write_anchor(sb);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue