diff options
author | Joern Engel <joern@logfs.org> | 2010-05-05 22:33:36 +0200 |
---|---|---|
committer | Joern Engel <joern@logfs.org> | 2010-05-05 22:33:36 +0200 |
commit | c0c79c31c9d5fcc19812c6c35f842baf50ee788a (patch) | |
tree | 85b3ee846f70f461add9b7cb1e08f3030992e2fb | |
parent | bba0b5c2c27e6dadc93c476f8a4b49d108b66292 (diff) | |
download | linux-c0c79c31c9d5fcc19812c6c35f842baf50ee788a.tar.bz2 |
logfs: fix sync
Rather self-explanatory.
Signed-off-by: Joern Engel <joern@logfs.org>
-rw-r--r-- | fs/logfs/file.c | 3 | ||||
-rw-r--r-- | fs/logfs/inode.c | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/fs/logfs/file.c b/fs/logfs/file.c index bf9b1cf953a6..1639e9235f56 100644 --- a/fs/logfs/file.c +++ b/fs/logfs/file.c @@ -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; } diff --git a/fs/logfs/inode.c b/fs/logfs/inode.c index af78b6e82895..755a92e8daa7 100644 --- a/fs/logfs/inode.c +++ b/fs/logfs/inode.c @@ -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; } |