Skip to content

Commit 64a5c2e

Browse files
Joakim TjernlundDavid Woodhouse
authored andcommitted
jffs2: Rename jffs2_erase_pending_trigger() to jffs2_dirty_trigger()
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>
1 parent ae3b6ba commit 64a5c2e

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

‎fs/jffs2/os-linux.h‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,7 @@ void jffs2_nor_wbuf_flash_cleanup(struct jffs2_sb_info *c);
140140

141141
#endif /* WRITEBUFFER */
142142

143-
/* erase.c */
144-
static inline void jffs2_erase_pending_trigger(struct jffs2_sb_info *c)
143+
static inline void jffs2_dirty_trigger(struct jffs2_sb_info *c)
145144
{
146145
OFNI_BS_2SFFJ(c)->s_dirt = 1;
147146
}

‎fs/jffs2/wbuf.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ static void jffs2_wbuf_dirties_inode(struct jffs2_sb_info *c, uint32_t ino)
8484
struct jffs2_inodirty *new;
8585

8686
/* Mark the superblock dirty so that kupdated will flush... */
87-
jffs2_erase_pending_trigger(c);
87+
jffs2_dirty_trigger(c);
8888

8989
if (jffs2_wbuf_pending_for_ino(c, ino))
9090
return;

0 commit comments

Comments
 (0)