mtd/fs/jffs2 nodelist.h,1.74,1.75

gleixner at infradead.org gleixner at infradead.org
Sat Aug 17 18:28:07 EDT 2002


Update of /home/cvs/mtd/fs/jffs2
In directory phoenix.infradead.org:/tmp/cvs-serv24032

Modified Files:
	nodelist.h 
Log Message:
added ISDIRTY macro

Index: nodelist.h
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/nodelist.h,v
retrieving revision 1.74
retrieving revision 1.75
diff -u -r1.74 -r1.75
--- nodelist.h	26 Jun 2002 01:20:43 -0000	1.74
+++ nodelist.h	17 Aug 2002 22:28:04 -0000	1.75
@@ -220,6 +220,9 @@
 /* How much dirty space before it goes on the very_dirty_list */
 #define VERYDIRTY(c, size) ((size) >= ((c)->sector_size / 2))
 
+/* check if unused space is more than sector - 2 * sizeof(struct jffs2_raw_inode) */
+#define ISDIRTY(c, size) ((size) < c->sector_size - (2 * sizeof(struct jffs2_raw_inode)))
+
 #define PAD(x) (((x)+3)&~3)
 
 static inline int jffs2_raw_ref_to_inum(struct jffs2_raw_node_ref *raw)





More information about the linux-mtd-cvs mailing list