Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755896AbZFELQZ (ORCPT ); Fri, 5 Jun 2009 07:16:25 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754859AbZFELON (ORCPT ); Fri, 5 Jun 2009 07:14:13 -0400 Received: from smtp.nokia.com ([192.100.122.230]:49345 "EHLO mgw-mx03.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754445AbZFELOL (ORCPT ); Fri, 5 Jun 2009 07:14:11 -0400 From: Artem Bityutskiy To: Al Viro Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Christoph Hellwig , Artem Bityutskiy , David Woodhouse , linux-mtd@lists.infradead.org Subject: [PATCH v2.1 10/17] JFFS2: do not manipulate s_dirt directly Date: Fri, 5 Jun 2009 16:05:48 +0300 Message-Id: <1244207155-2092-11-git-send-email-dedekind@infradead.org> X-Mailer: git-send-email 1.6.0.6 In-Reply-To: <1244207155-2092-1-git-send-email-dedekind@infradead.org> References: <1244207155-2092-1-git-send-email-dedekind@infradead.org> X-OriginalArrivalTime: 05 Jun 2009 11:13:05.0603 (UTC) FILETIME=[99607930:01C9E5CE] X-Nokia-AV: Clean Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1585 Lines: 55 From: Artem Bityutskiy ... use new VFS helpers instead. Signed-off-by: Artem Bityutskiy Cc: David Woodhouse Cc: linux-mtd@lists.infradead.org --- fs/jffs2/os-linux.h | 2 +- fs/jffs2/super.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/jffs2/os-linux.h b/fs/jffs2/os-linux.h index 2228380..ad12212 100644 --- a/fs/jffs2/os-linux.h +++ b/fs/jffs2/os-linux.h @@ -147,7 +147,7 @@ void jffs2_nor_wbuf_flash_cleanup(struct jffs2_sb_info *c); /* erase.c */ static inline void jffs2_erase_pending_trigger(struct jffs2_sb_info *c) { - OFNI_BS_2SFFJ(c)->s_dirt = 1; + mark_sb_dirty(OFNI_BS_2SFFJ(c)); } /* background.c */ diff --git a/fs/jffs2/super.c b/fs/jffs2/super.c index f7bfd3a..5b321fa 100644 --- a/fs/jffs2/super.c +++ b/fs/jffs2/super.c @@ -58,7 +58,7 @@ static void jffs2_write_super(struct super_block *sb) struct jffs2_sb_info *c = JFFS2_SB_INFO(sb); lock_super(sb); - sb->s_dirt = 0; + mark_sb_clean(sb); if (!(sb->s_flags & MS_RDONLY)) { D1(printk(KERN_DEBUG "jffs2_write_super()\n")); @@ -193,7 +193,7 @@ static void jffs2_put_super (struct super_block *sb) lock_kernel(); - if (sb->s_dirt) + if (is_sb_dirty(sb)) jffs2_write_super(sb); mutex_lock(&c->alloc_sem); -- 1.6.0.6 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/