aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nilfs2/super.c
diff options
context:
space:
mode:
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>2009-12-08 10:57:52 -0500
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>2010-02-12 22:26:03 -0500
commite605f0a7249d8002c660af379f884896cbaa45ae (patch)
tree8daadf8848cd8f6c7817c399e568a2fcecdf0255 /fs/nilfs2/super.c
parentdcd76186955e2b595c378dbe5b9bb6c8c5374b10 (diff)
nilfs2: get rid of s_dirt flag use
This replaces s_dirt flag use in nilfs with a new flag added on the nilfs object. The s_dirt flag was used to indicate if sop->write_super() should be called, however the current version of nilfs does not use the callback. Thus, it can be replaced with the own flag. Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> Cc: Jiro SEKIBA <jir@unicus.jp>
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