Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Mar 2011 10:25:47 GMT
From:      Zheng Liu <lz@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 189855 for review
Message-ID:  <201103111025.p2BAPlPH041909@skunkworks.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@189855?ac=10

Change 189855 by lz@freebsd-dev on 2011/03/11 10:25:07

	       Check block map in runlen == 0.

Affected files ...

.. //depot/projects/soc2010/extfs/src/sys/fs/ext2fs/ext2_alloc.c#38 edit

Differences ...

==== //depot/projects/soc2010/extfs/src/sys/fs/ext2fs/ext2_alloc.c#38 (text+ko) ====

@@ -1345,6 +1345,13 @@
                 }
 
                 if (runlen == 0) {
+                        bit = ffs(bbp[loc]) - 1;
+                        runlen += bit;
+                        if (runlen >= len) {
+                                bno = loc * NBBY;
+                                goto gotit;
+                        }
+
                         bit = fls(bbp[loc]);
                         runlen = NBBY - bit;
                         runstart = loc * NBBY + bit;



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