Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 May 2010 18:56:45 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r207476 - head/lib/libufs
Message-ID:  <201005011856.o41Iuj6o055885@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Sat May  1 18:56:45 2010
New Revision: 207476
URL: http://svn.freebsd.org/changeset/base/207476

Log:
  Search beyond the first 1/8th of inodes.
  
  Submitted by:	jeff

Modified:
  head/lib/libufs/cgroup.c

Modified: head/lib/libufs/cgroup.c
==============================================================================
--- head/lib/libufs/cgroup.c	Sat May  1 18:34:50 2010	(r207475)
+++ head/lib/libufs/cgroup.c	Sat May  1 18:56:45 2010	(r207476)
@@ -145,7 +145,7 @@ cgialloc(struct uufsd *disk)
 	fs = &disk->d_fs;
 	cgp = &disk->d_cg;
 	inosused = cg_inosused(cgp);
-	for (ino = 0; ino < fs->fs_ipg / NBBY; ino++)
+	for (ino = 0; ino < fs->fs_ipg; ino++)
 		if (isclr(inosused, ino))
 			goto gotit;
 	return (0);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201005011856.o41Iuj6o055885>