mtd/fs/jffs2 scan.c,1.90,1.91
David Woodhouse
dwmw2 at infradead.org
Mon Sep 9 03:47:56 EDT 2002
Update of /home/cvs/mtd/fs/jffs2
In directory phoenix.infradead.org:/tmp/cvs-serv13104
Modified Files:
scan.c
Log Message:
Read only EMPTY_SCAN_SIZE at start. Reduce that to 1KiB.
Index: scan.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/scan.c,v
retrieving revision 1.90
retrieving revision 1.91
diff -u -r1.90 -r1.91
--- scan.c 9 Sep 2002 07:38:50 -0000 1.90
+++ scan.c 9 Sep 2002 07:47:53 -0000 1.91
@@ -18,7 +18,7 @@
#include <linux/compiler.h>
#include "nodelist.h"
-#define EMPTY_SCAN_SIZE 4096
+#define EMPTY_SCAN_SIZE 1024
#define DIRTY_SPACE(x) do { typeof(x) _x = (x); \
c->free_size -= _x; c->dirty_size += _x; \
@@ -300,7 +300,7 @@
if (!buf_size) {
buf_len = c->sector_size;
} else {
- buf_len = buf_size;
+ buf_len = EMPTY_SCAN_SIZE;
err = jffs2_fill_scan_buf(c, buf, buf_ofs, buf_len);
if (err)
return err;
More information about the linux-mtd-cvs
mailing list