]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
nilfs2: remove redundant super block commit
authorJiro SEKIBA <jir@unicus.jp>
Fri, 10 Jul 2009 10:57:28 +0000 (19:57 +0900)
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Mon, 14 Sep 2009 09:27:13 +0000 (18:27 +0900)
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>
fs/nilfs2/super.c

index ebbefb9d26c979af4319db0ec828037ca3ee9919..e543eda0d939b4767ac02c22a5ef1ff4f5ca75e7 100644 (file)
@@ -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)) {