patch-1.3.91 linux/fs/inode.c

Next file: linux/fs/isofs/rock.c
Previous file: linux/fs/devices.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.90/linux/fs/inode.c linux/fs/inode.c
@@ -497,7 +497,7 @@
 repeat:
 	inode = first_inode;
 	best = NULL;
-	for (i = 0; i<nr_inodes; inode = inode->i_next, i++) {
+	for (i = nr_inodes/2; i > 0; i--,inode = inode->i_next) {
 		if (!inode->i_count) {
 			unsigned long i = value(inode);
 			if (i < badness) {

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