Hi,
On Fri, 10 Jul 2009 14:09:27 +0900, Jiro SEKIBA wrote:
> 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]>

Applied. Thanks!

Due to the recent changes on vfs interface, some functions in
fs/nilfs2/super.c has room for cleanup like this.

Further, there is a discussion about eliminating the write_super()
callback in LKML.  The function was periodically called from the vfs
layer to induce a writeback of superblock.  It is now deemed not to be
required if a file system handles the timing.  I feel the writeback
control of the superblock should be revised overall for nilfs.

I would appreciate it if you could help me to do the series of cleanup
jobs.

Thanks,
Ryusuke Konishi
 
> ---
>  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