patch-2.4.0-test4 linux/fs/jffs/inode-v23.c
Next file: linux/fs/jffs/jffs_fm.c
Previous file: linux/fs/inode.c
Back to the patch index
Back to the overall index
- Lines: 39
- Date:
Thu Jul 13 09:39:49 2000
- Orig file:
v2.4.0-test3/linux/fs/jffs/inode-v23.c
- Orig date:
Mon Jul 10 16:47:25 2000
diff -u --recursive --new-file v2.4.0-test3/linux/fs/jffs/inode-v23.c linux/fs/jffs/inode-v23.c
@@ -8,7 +8,7 @@
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
- * $Id: inode-v23.c,v 1.16 2000/07/06 14:38:10 dwmw2 Exp $
+ * $Id: inode-v23.c,v 1.17 2000/07/06 20:35:19 prumpf Exp $
*
*
* Ported to Linux 2.3.x and MTD:
@@ -1453,7 +1453,6 @@
static struct file_operations jffs_dir_operations =
{
- read: generic_read_dir,
readdir: jffs_readdir,
};
@@ -1533,16 +1532,19 @@
inode->i_size = 0;
- unlock_kernel();
clear_inode(inode);
+ unlock_kernel();
}
void
jffs_write_super(struct super_block *sb)
{
#ifdef USE_GC
- jffs_garbage_collect((struct jffs_control *)sb->u.generic_sbp);
+ struct jffs_control *c = (struct jffs_control *)sb->u.generic_sbp;
+
+ if(!c->fmc->no_call_gc)
+ jffs_garbage_collect(c);
#endif
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)