From: Jiro SEKIBA Date: Fri, 10 Jul 2009 10:57:28 +0000 (+0900) Subject: nilfs2: remove redundant super block commit X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ec5d66abdb0caf8b753a138568f20770a3d64c8c;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git nilfs2: remove redundant super block commit 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 Signed-off-by: Ryusuke Konishi --- diff --git a/fs/nilfs2/super.c b/fs/nilfs2/super.c index ebbefb9d26c..e543eda0d93 100644 --- a/fs/nilfs2/super.c +++ b/fs/nilfs2/super.c @@ -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)) {