- count = howmany(osize, DEV_BSIZE);
- s = splimp();
- for (i = 0; i < count; i += CLBYTES / DEV_BSIZE)
- if (mfind(ip->i_dev, bn + i))
- munhash(ip->i_dev, bn + i);
- splx(s);
+ count = howmany(osize, CLBYTES);
+ for (i = 0; i < count; i++)
+#ifdef SECSIZE
+ munhash(ip->i_dev, bn + i * CLBYTES / fs->fs_dbsize);
+#else SECSIZE
+ munhash(ip->i_dev, bn + i * CLBYTES / DEV_BSIZE);
+#endif SECSIZE