Hi,

This is a patch to remove 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.

thanks,

regards,
-- 
Jiro SEKIBA <[email protected]>

 Signed-off-by: Jiro SEKIBA <[email protected]>

---
 fs/nilfs2/super.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/fs/nilfs2/super.c b/fs/nilfs2/super.c
index b1d992b..52c089f 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)) {
-- 
1.5.6.5


_______________________________________________
users mailing list
[email protected]
https://www.nilfs.org/mailman/listinfo/users

Reply via email to