aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nilfs2/super.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nilfs2/super.c')
-rw-r--r--fs/nilfs2/super.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nilfs2/super.c b/fs/nilfs2/super.c
index f068270f6c75..92579cc4c935 100644
--- a/fs/nilfs2/super.c
+++ b/fs/nilfs2/super.c
@@ -298,7 +298,7 @@ int nilfs_commit_super(struct nilfs_sb_info *sbi, int dupsb)
298 memcpy(sbp[1], sbp[0], nilfs->ns_sbsize); 298 memcpy(sbp[1], sbp[0], nilfs->ns_sbsize);
299 nilfs->ns_sbwtime[1] = t; 299 nilfs->ns_sbwtime[1] = t;
300 } 300 }
301 sbi->s_super->s_dirt = 0; 301 clear_nilfs_sb_dirty(nilfs);
302 return nilfs_sync_super(sbi, dupsb); 302 return nilfs_sync_super(sbi, dupsb);
303} 303}
304 304
@@ -342,7 +342,7 @@ static int nilfs_sync_fs(struct super_block *sb, int wait)
342 err = nilfs_construct_segment(sb); 342 err = nilfs_construct_segment(sb);
343 343
344 down_write(&nilfs->ns_sem); 344 down_write(&nilfs->ns_sem);
345 if (sb->s_dirt) 345 if (nilfs_sb_dirty(nilfs))
346 nilfs_commit_super(sbi, 1); 346 nilfs_commit_super(sbi, 1);
347 up_write(&nilfs->ns_sem); 347 up_write(&nilfs->ns_sem);
348 348