Matthew Dillon wrote:
>     Hmm.  Well, my code is definitely broken.  My 'adj' calculation is
>     all wrong.  However, my size calculation appears to be correct.
>     (size - adj) is the size of the block after the base has been adjusted
>     to the next full chunk.  The number of chunks we then generate bits
>     for must be fully enclosed by size and (new_size & ~(DEV_BSIZE - 1))
>     gives that to us.  e.g. if new_size is less then DEV_BSIZE we get 0,
>     correctly indicating that we cannot clear any dirty bits at all.

I missed the size of the operand to the twiddle; mea culpa.  I
thought you were (effectively) getting a "mod" operation on a
"div"'ed value, not the total value.

Never mind.  8^).

-- Terry

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to