Skip to content

Commit

Permalink
logfs: fix sync
Browse files Browse the repository at this point in the history
Rather self-explanatory.

Signed-off-by: Joern Engel <joern@logfs.org>
  • Loading branch information
Joern Engel committed May 5, 2010
1 parent bba0b5c commit c0c79c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions fs/logfs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
3 changes: 1 addition & 2 deletions fs/logfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit c0c79c3

Please sign in to comment.