From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: [PATCH 11/12] nilfs2: call nilfs2_write_super from nilfs2_sync_fs Date: Mon, 8 Jun 2009 10:08:36 +0200 Message-ID: <20090608080836.GL20735@lst.de> References: <20090608080252.GA20735@lst.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-fsdevel@vger.kernel.org To: viro@zeniv.linux.org.uk Return-path: Received: from verein.lst.de ([213.95.11.210]:33449 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754580AbZFHIIf (ORCPT ); Mon, 8 Jun 2009 04:08:35 -0400 Content-Disposition: inline In-Reply-To: <20090608080252.GA20735@lst.de> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: The call to ->write_super from __sync_filesystem will go away, so make sure nilfs2 performs the same actions from inside ->sync_fs. Signed-off-by: Christoph Hellwig Index: vfs-2.6/fs/nilfs2/super.c =================================================================== --- vfs-2.6.orig/fs/nilfs2/super.c 2009-06-05 16:23:27.776843986 +0200 +++ vfs-2.6/fs/nilfs2/super.c 2009-06-05 16:23:46.850942403 +0200 @@ -391,6 +391,8 @@ static int nilfs_sync_fs(struct super_bl { 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);