mtd/fs/jffs2 super-v24.c,1.81,1.82
dmarlin at infradead.org
dmarlin at infradead.org
Thu Dec 16 13:52:10 EST 2004
Update of /home/cvs/mtd/fs/jffs2
In directory phoenix.infradead.org:/tmp/cvs-serv10573/fs/jffs2
Modified Files:
super-v24.c
Log Message:
Update to support MTD_NO_VIRTBLOCKS for 2.4 kernel.
(change taken from fs/jffs2/super.c)
Index: super-v24.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/super-v24.c,v
retrieving revision 1.81
retrieving revision 1.82
diff -u -r1.81 -r1.82
--- super-v24.c 16 Nov 2004 20:36:12 -0000 1.81
+++ super-v24.c 16 Dec 2004 18:52:07 -0000 1.82
@@ -90,7 +90,10 @@
up(&c->alloc_sem);
jffs2_free_ino_caches(c);
jffs2_free_raw_node_refs(c);
- kfree(c->blocks);
+ if (c->mtd->flags & MTD_NO_VIRTBLOCKS)
+ vfree(c->blocks);
+ else
+ kfree(c->blocks);
jffs2_flash_cleanup(c);
kfree(c->inocache_list);
if (c->mtd->sync)
More information about the linux-mtd-cvs
mailing list