Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 195983
b: refs/heads/master
c: acb64a4
h: refs/heads/master
i:
  195981: 0bbd5c3
  195979: 1217ff6
  195975: 020eac8
  195967: ca19922
v: v3
  • Loading branch information
David Woodhouse authored and David Woodhouse committed May 19, 2010
1 parent 8a71b8b commit c9aafa9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d6ce171069635f05737935adc813b4d48d71a583
refs/heads/master: acb64a43e4503fbea9faf123f2403da7af8831eb
3 changes: 1 addition & 2 deletions trunk/fs/jffs2/background.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@ static int jffs2_garbage_collect_thread(void *);

void jffs2_garbage_collect_trigger(struct jffs2_sb_info *c)
{
spin_lock(&c->erase_completion_lock);
assert_spin_locked(&c->erase_completion_lock);
if (c->gc_task && jffs2_thread_should_wake(c))
send_sig(SIGHUP, c->gc_task, 1);
spin_unlock(&c->erase_completion_lock);
}

/* This must only ever be called when no GC thread is currently running */
Expand Down
2 changes: 2 additions & 0 deletions trunk/fs/jffs2/nodemgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,9 @@ struct jffs2_raw_node_ref *jffs2_add_physical_node_ref(struct jffs2_sb_info *c,
void jffs2_complete_reservation(struct jffs2_sb_info *c)
{
D1(printk(KERN_DEBUG "jffs2_complete_reservation()\n"));
spin_lock(&c->erase_completion_lock);
jffs2_garbage_collect_trigger(c);
spin_unlock(&c->erase_completion_lock);
mutex_unlock(&c->alloc_sem);
}

Expand Down
2 changes: 2 additions & 0 deletions trunk/fs/jffs2/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ static void jffs2_write_super(struct super_block *sb)

if (!(sb->s_flags & MS_RDONLY)) {
D1(printk(KERN_DEBUG "jffs2_write_super()\n"));
spin_lock(&c->erase_completion_lock);
jffs2_garbage_collect_trigger(c);
spin_unlock(&c->erase_completion_lock);
jffs2_erase_pending_blocks(c, 0);
jffs2_flush_wbuf_gc(c, 0);
}
Expand Down

0 comments on commit c9aafa9

Please sign in to comment.