Skip to content

Commit

Permalink
jffs2: Rename jffs2_erase_pending_trigger() to jffs2_dirty_trigger()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Joakim Tjernlund authored and David Woodhouse committed May 19, 2010
1 parent ae3b6ba commit 64a5c2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions fs/jffs2/os-linux.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion fs/jffs2/wbuf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 64a5c2e

Please sign in to comment.