On Fri, 17 Jul 2009 18:12:46 +0900, Jiro SEKIBA wrote: > Signed-off-by: Jiro SEKIBA <[email protected]> > > --- > fs/nilfs2/super.c | 5 +++-- > 1 files changed, 3 insertions(+), 2 deletions(-) > > diff --git a/fs/nilfs2/super.c b/fs/nilfs2/super.c > index 8e2ec43..ba69601 100644 > --- a/fs/nilfs2/super.c > +++ b/fs/nilfs2/super.c > @@ -388,11 +388,12 @@ static int nilfs_sync_fs(struct super_block *sb, int > wait) > { > int err = 0; > > - nilfs_write_super(sb); > - > /* This function is called when super block should be written back */ > if (wait) > err = nilfs_construct_segment(sb); > + > + nilfs_write_super(sb); > + > return err; > } > > -- > 1.5.6.5
Yes, right. Writing back the super-block should be moved after log writing. A recent vfs cleanup made room for this change. Ryusuke Konishi _______________________________________________ users mailing list [email protected] https://www.nilfs.org/mailman/listinfo/users
