]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
jffs2: Rename jffs2_erase_pending_trigger() to jffs2_dirty_trigger()
authorJoakim Tjernlund <joakim.tjernlund@transmode.se>
Wed, 19 May 2010 16:13:19 +0000 (17:13 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Wed, 19 May 2010 16:15:36 +0000 (17:15 +0100)
Now that we do erases from GC and trigger the GC thread to do them
instead of using kupdated, this function is misnamed. It's only used
for triggering wbuf flush on NAND flash now. Rename it accordingly.

Signed-off-by: Joakim Tjernlund <joakim.tjernlund@transmode.se>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
fs/jffs2/os-linux.h
fs/jffs2/wbuf.c

index a7f03b7ebcb3c981777de0f64572957ed04ff03a..035a767f958b078baa407c84e90050b20f77eca2 100644 (file)
@@ -140,8 +140,7 @@ void jffs2_nor_wbuf_flash_cleanup(struct jffs2_sb_info *c);
 
 #endif /* WRITEBUFFER */
 
-/* erase.c */
-static inline void jffs2_erase_pending_trigger(struct jffs2_sb_info *c)
+static inline void jffs2_dirty_trigger(struct jffs2_sb_info *c)
 {
        OFNI_BS_2SFFJ(c)->s_dirt = 1;
 }
index be114beca13e9b096b38c5ace087b525c5c2bdd7..07ee1546b2fa66122940ef39d1a677f0e88b729f 100644 (file)
@@ -84,7 +84,7 @@ static void jffs2_wbuf_dirties_inode(struct jffs2_sb_info *c, uint32_t ino)
        struct jffs2_inodirty *new;
 
        /* Mark the superblock dirty so that kupdated will flush... */
-       jffs2_erase_pending_trigger(c);
+       jffs2_dirty_trigger(c);
 
        if (jffs2_wbuf_pending_for_ino(c, ino))
                return;