diff options
author | Joern Engel <joern@logfs.org> | 2010-05-05 16:33:36 -0400 |
---|---|---|
committer | Joern Engel <joern@logfs.org> | 2010-05-05 16:33:36 -0400 |
commit | c0c79c31c9d5fcc19812c6c35f842baf50ee788a (patch) | |
tree | 85b3ee846f70f461add9b7cb1e08f3030992e2fb /fs/logfs | |
parent | bba0b5c2c27e6dadc93c476f8a4b49d108b66292 (diff) |
logfs: fix sync
Rather self-explanatory.
Signed-off-by: Joern Engel <joern@logfs.org>
Diffstat (limited to 'fs/logfs')
-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) | |||
224 | struct super_block *sb = dentry->d_inode->i_sb; | 224 | struct super_block *sb = dentry->d_inode->i_sb; |
225 | struct logfs_super *super = logfs_super(sb); | 225 | struct logfs_super *super = logfs_super(sb); |
226 | 226 | ||
227 | /* FIXME: write anchor */ | 227 | logfs_write_anchor(sb); |
228 | super->s_devops->sync(sb); | ||
229 | return 0; | 228 | return 0; |
230 | } | 229 | } |
231 | 230 | ||
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) | |||
387 | 387 | ||
388 | static int logfs_sync_fs(struct super_block *sb, int wait) | 388 | static int logfs_sync_fs(struct super_block *sb, int wait) |
389 | { | 389 | { |
390 | /* FIXME: write anchor */ | 390 | logfs_write_anchor(sb); |
391 | logfs_super(sb)->s_devops->sync(sb); | ||
392 | return 0; | 391 | return 0; |
393 | } | 392 | } |
394 | 393 | ||