mtd/fs/jffs2/ecos/src gcthread.c,NONE,1.1 dir-ecos.c,1.9,1.10
fs-ecos.c,1.24,1.25 malloc-ecos.c,1.3,1.4 os-ecos.h,1.16,1.17
David Woodhouse
dwmw2 at infradead.org
Wed Nov 26 10:55:38 EST 2003
Update of /home/cvs/mtd/fs/jffs2/ecos/src
In directory phoenix.infradead.org:/tmp/cvs-serv8029/src
Modified Files:
dir-ecos.c fs-ecos.c malloc-ecos.c os-ecos.h
Added Files:
gcthread.c
Log Message:
Add gc thread support
***** Error reading new file: [Errno 2] No such file or directory: 'gcthread.c'
Index: dir-ecos.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/ecos/src/dir-ecos.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- dir-ecos.c 26 Nov 2003 15:24:29 -0000 1.9
+++ dir-ecos.c 26 Nov 2003 15:55:35 -0000 1.10
@@ -1,7 +1,7 @@
/*
* JFFS2 -- Journalling Flash File System, Version 2.
*
- * Copyright (C) 2001, 2002 Red Hat, Inc.
+ * Copyright (C) 2001-2003 Red Hat, Inc.
*
* Created by David Woodhouse <dwmw2 at cambridge.redhat.com>
*
Index: fs-ecos.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/ecos/src/fs-ecos.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- fs-ecos.c 26 Nov 2003 15:24:29 -0000 1.24
+++ fs-ecos.c 26 Nov 2003 15:55:35 -0000 1.25
@@ -1,7 +1,7 @@
/*
* JFFS2 -- Journalling Flash File System, Version 2.
*
- * Copyright (C) 2001, 2002 Red Hat, Inc.
+ * Copyright (C) 2001-2003 Red Hat, Inc.
*
* Created by Dominic Ostrowski <dominic.ostrowski at 3glab.com>
* Contributors: David Woodhouse, Nick Garnett, Richard Panton.
@@ -541,6 +541,9 @@
D2(printf("jffs2_mount erasing pending blocks\n"));
jffs2_erase_pending_blocks(c,0);
+#ifdef CYGOPT_FS_JFFS2_GCTHREAD
+ jffs2_start_garbage_collect_thread(c);
+#endif
}
mte->data = (CYG_ADDRWORD) jffs2_sb;
@@ -596,6 +599,9 @@
root->i_count);
return EBUSY;
}
+#ifdef CYGOPT_FS_JFFS2_GCTHREAD
+ jffs2_stop_garbage_collect_thread(c);
+#endif
jffs2_iput(root); // Time to free the root inode
free(root);
//Clear root inode
Index: malloc-ecos.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/ecos/src/malloc-ecos.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- malloc-ecos.c 24 Nov 2003 13:54:17 -0000 1.3
+++ malloc-ecos.c 26 Nov 2003 15:55:35 -0000 1.4
@@ -1,7 +1,7 @@
/*
* JFFS2 -- Journalling Flash File System, Version 2.
*
- * Copyright (C) 2001, 2002 Red Hat, Inc.
+ * Copyright (C) 2001-2003 Red Hat, Inc.
*
* Created by David Woodhouse <dwmw2 at cambridge.redhat.com>
*
Index: os-ecos.h
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/ecos/src/os-ecos.h,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- os-ecos.h 26 Nov 2003 15:24:29 -0000 1.16
+++ os-ecos.h 26 Nov 2003 15:55:35 -0000 1.17
@@ -1,7 +1,7 @@
/*
* JFFS2 -- Journalling Flash File System, Version 2.
*
- * Copyright (C) 2002 Red Hat, Inc.
+ * Copyright (C) 2002-2003 Red Hat, Inc.
*
* Created by David Woodhouse <dwmw2 at cambridge.redhat.com>
*
@@ -130,10 +130,16 @@
#define EBADFD 32767
/* background.c */
+#ifdef CYGOPT_FS_JFFS2_GCTHREAD
+void jffs2_garbage_collect_trigger(struct jffs2_sb_info *c);
+void jffs2_start_garbage_collect_thread(struct jffs2_sb_info *c);
+void jffs2_stop_garbage_collect_thread(struct jffs2_sb_info *c);
+#else
static inline void jffs2_garbage_collect_trigger(struct jffs2_sb_info *c)
{
/* We don't have a GC thread in eCos (yet) */
}
+#endif
/* fs-ecos.c */
struct _inode *jffs2_new_inode (struct _inode *dir_i, int mode, struct jffs2_raw_inode *ri);
More information about the linux-mtd-cvs
mailing list