Skip to content

Commit

Permalink
nilfs2: remove redundant super block commit
Browse files Browse the repository at this point in the history
This removes redundant super block commit.

nilfs_write_super will call nilfs_commit_super to store super block
into block device.  However, nilfs_put_super will call
nilfs_commit_super right after calling nilfs_write_super.  So calling
nilfs_write_super in nilfs_put_super would be redundant.

Signed-off-by: Jiro SEKIBA <jir@unicus.jp>
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
  • Loading branch information
Jiro SEKIBA authored and Ryusuke Konishi committed Sep 14, 2009
1 parent b58a285 commit ec5d66a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions fs/nilfs2/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -313,9 +313,6 @@ static void nilfs_put_super(struct super_block *sb)

lock_kernel();

if (sb->s_dirt)
nilfs_write_super(sb);

nilfs_detach_segment_constructor(sbi);

if (!(sb->s_flags & MS_RDONLY)) {
Expand Down

0 comments on commit ec5d66a

Please sign in to comment.