aboutsummaryrefslogtreecommitdiffstats
path: root/fs/reiserfs/super.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/reiserfs/super.c')
-rw-r--r--fs/reiserfs/super.c21
1 files changed, 9 insertions, 12 deletions
diff --git a/fs/reiserfs/super.c b/fs/reiserfs/super.c
index 1b52daa351c5..3da0401c0a96 100644
--- a/fs/reiserfs/super.c
+++ b/fs/reiserfs/super.c
@@ -64,18 +64,15 @@ static int reiserfs_statfs(struct dentry *dentry, struct kstatfs *buf);
64 64
65static int reiserfs_sync_fs(struct super_block *s, int wait) 65static int reiserfs_sync_fs(struct super_block *s, int wait)
66{ 66{
67 if (!(s->s_flags & MS_RDONLY)) { 67 struct reiserfs_transaction_handle th;
68 struct reiserfs_transaction_handle th; 68
69 reiserfs_write_lock(s); 69 reiserfs_write_lock(s);
70 if (!journal_begin(&th, s, 1)) 70 if (!journal_begin(&th, s, 1))
71 if (!journal_end_sync(&th, s, 1)) 71 if (!journal_end_sync(&th, s, 1))
72 reiserfs_flush_old_commits(s); 72 reiserfs_flush_old_commits(s);
73 s->s_dirt = 0; /* Even if it's not true. 73 s->s_dirt = 0; /* Even if it's not true.
74 * We'll loop forever in sync_supers otherwise */ 74 * We'll loop forever in sync_supers otherwise */
75 reiserfs_write_unlock(s); 75 reiserfs_write_unlock(s);
76 } else {
77 s->s_dirt = 0;
78 }
79 return 0; 76 return 0;
80} 77}
81 78