changeset 4:50a36843bc47

bugfix
author Josef "Jeff" Sipek <jsipek@cs.sunysb.edu>
date Sun, 29 Jul 2007 02:02:31 -0400
parents 4184ac3250c3
children f9102615898f
files xfs-save-buf-reference-count-as-page-weight
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/xfs-save-buf-reference-count-as-page-weight	Sun Jul 29 01:27:02 2007 -0400
+++ b/xfs-save-buf-reference-count-as-page-weight	Sun Jul 29 02:02:31 2007 -0400
@@ -7,7 +7,7 @@
 Signed-off-by: Josef 'Jeff' Sipek <jsipek@cs.sunysb.edu>
 
 diff --git a/fs/xfs/linux-2.6/xfs_buf.h b/fs/xfs/linux-2.6/xfs_buf.h
-index b5908a3..a94cb4a 100644
+index b5908a3..f5e0862 100644
 --- a/fs/xfs/linux-2.6/xfs_buf.h
 +++ b/fs/xfs/linux-2.6/xfs_buf.h
 @@ -31,6 +31,19 @@
@@ -55,7 +55,7 @@
 +	int i;
 +	int weight = (ref > 1) ? (NR_INACTIVE_LISTS - 1) : 0;
 +
-+	for (i = 0; i < XFS_BUF_SIZE(bp); i++)
++	for (i = 0; i < bp->b_page_count; i++)
 +		set_page_weight(bp->b_pages[i], weight);
 +}
 +