From mboxrd@z Thu Jan 1 00:00:00 1970 From: Artem Bityutskiy Subject: [PATCH 03/19] BFS: do not manipulate s_dirt directly Date: Wed, 27 May 2009 16:05:23 +0300 Message-ID: <20090527130523.4913.9362.sendpatchset@localhost.localdomain> References: <20090527130503.4913.62042.sendpatchset@localhost.localdomain> Cc: linux-fsdevel@vger.kernel.org, Christoph Hellwig , Artem Bityutskiy To: linux-kernel@vger.kernel.org Return-path: Received: from smtp.nokia.com ([192.100.105.134]:49363 "EHLO mgw-mx09.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757622AbZE0LLy (ORCPT ); Wed, 27 May 2009 07:11:54 -0400 In-Reply-To: <20090527130503.4913.62042.sendpatchset@localhost.localdomain> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: From: Artem Bityutskiy Subject: [PATCH] BFS: do not manipulate s_dirt directly ... use new VFS helpers instead. Signed-off-by: Artem Bityutskiy Cc: Christoph Hellwig --- fs/bfs/inode.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/bfs/inode.c b/fs/bfs/inode.c index 3a9a136..7ab0792 100644 --- a/fs/bfs/inode.c +++ b/fs/bfs/inode.c @@ -219,7 +219,7 @@ static void bfs_put_super(struct super_block *s) lock_kernel(); - if (s->s_dirt) + if (sb_is_dirty(s)) bfs_write_super(s); brelse(info->si_sbh); @@ -255,7 +255,7 @@ static void bfs_write_super(struct super_block *s) mutex_lock(&info->bfs_lock); if (!(s->s_flags & MS_RDONLY)) mark_buffer_dirty(info->si_sbh); - s->s_dirt = 0; + mark_sb_clean(s); mutex_unlock(&info->bfs_lock); } @@ -464,7 +464,7 @@ static int bfs_fill_super(struct super_block *s, void *data, int silent) brelse(bh); if (!(s->s_flags & MS_RDONLY)) { mark_buffer_dirty(info->si_sbh); - s->s_dirt = 1; + mark_sb_dirty(s); } dump_imap("read_super", s); mutex_init(&info->bfs_lock); -- 1.6.0.6