patch-1.3.34 linux/include/linux/fs.h

Next file: linux/include/linux/mm.h
Previous file: linux/include/linux/fd.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.33/linux/include/linux/fs.h linux/include/linux/fs.h
@@ -124,11 +124,22 @@
 	unsigned char b_uptodate;
 	unsigned char b_dirt;		/* 0-clean,1-dirty */
 	unsigned char b_lock;		/* 0 - ok, 1 -locked */
-	unsigned char b_req;		/* 0 if the buffer has been invalidated */
+	unsigned char b_req;		/* 0 if the buffer has been 
+					 * invalidated */
 	unsigned char b_list;		/* List that this buffer appears */
-	unsigned char b_reuse;		/* 0 - normal, 1 - better reused for something else */
-	unsigned long b_flushtime;      /* Time when this (dirty) buffer should be written */
-	unsigned long b_lru_time;       /* Time when this buffer was last used. */
+	unsigned char b_reuse;		/* 0 - normal, 
+					 * 1 - better reused for something 
+					 *     else */
+	unsigned char b_touched:1;	/* True if the buffer has been
+					 * accessed since it was last aged */
+	unsigned char b_has_aged:1;	/* True if the buffer has aged
+					 * (by alias to another buffer
+					 * on the same page) since it
+					 * was last scanned for aging */
+	unsigned long b_flushtime;      /* Time when this (dirty) buffer
+					 * should be written */
+	unsigned long b_lru_time;       /* Time when this buffer was 
+					 * last used. */
 	struct wait_queue * b_wait;
 	struct buffer_head * b_prev;		/* doubly linked list of hash-queue */
 	struct buffer_head * b_next;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this