aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jffs2/nodemgmt.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/jffs2/nodemgmt.c')
-rw-r--r--fs/jffs2/nodemgmt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/jffs2/nodemgmt.c b/fs/jffs2/nodemgmt.c
index 456adf020f22..a8e198231230 100644
--- a/fs/jffs2/nodemgmt.c
+++ b/fs/jffs2/nodemgmt.c
@@ -7,7 +7,7 @@
7 * 7 *
8 * For licensing information, see the file 'LICENCE' in this directory. 8 * For licensing information, see the file 'LICENCE' in this directory.
9 * 9 *
10 * $Id: nodemgmt.c,v 1.119 2005/02/28 08:21:05 dedekind Exp $ 10 * $Id: nodemgmt.c,v 1.120 2005/03/20 17:46:20 dedekind Exp $
11 * 11 *
12 */ 12 */
13 13
@@ -594,7 +594,7 @@ void jffs2_mark_node_obsolete(struct jffs2_sb_info *c, struct jffs2_raw_node_ref
594 *p = ref->next_in_ino; 594 *p = ref->next_in_ino;
595 ref->next_in_ino = NULL; 595 ref->next_in_ino = NULL;
596 596
597 if (ic->nodes == (void *)ic) 597 if (ic->nodes == (void *)ic && ic->nlink == 0)
598 jffs2_del_ino_cache(c, ic); 598 jffs2_del_ino_cache(c, ic);
599 599
600 spin_unlock(&c->erase_completion_lock); 600 spin_unlock(&c->erase_completion_lock);