[BACK]Return to ufs_dirhash.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / ufs / ufs

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/ufs/ufs/ufs_dirhash.c between version 1.4.2.1 and 1.12.2.1

version 1.4.2.1, 2006/06/21 15:12:39 version 1.12.2.1, 2007/03/12 06:01:10
Line 196  ufsdirhash_build(struct inode *ip)
Line 196  ufsdirhash_build(struct inode *ip)
         while (pos < ip->i_size) {          while (pos < ip->i_size) {
                 if ((curcpu()->ci_schedstate.spc_flags & SPCF_SHOULDYIELD)                  if ((curcpu()->ci_schedstate.spc_flags & SPCF_SHOULDYIELD)
                     != 0) {                      != 0) {
                         preempt(1);                          preempt();
                 }                  }
                 /* If necessary, get the next directory block. */                  /* If necessary, get the next directory block. */
                 if ((pos & bmask) == 0) {                  if ((pos & bmask) == 0) {
Line 400  restart:
Line 400  restart:
                         if (ufs_blkatoff(vp, (off_t)blkoff, NULL, &bp) != 0)                          if (ufs_blkatoff(vp, (off_t)blkoff, NULL, &bp) != 0)
                                 return (EJUSTRETURN);                                  return (EJUSTRETURN);
                 }                  }
                 dp = (struct direct *)(bp->b_data + (offset & bmask));                  dp = (struct direct *)((char *)bp->b_data + (offset & bmask));
                 if (dp->d_reclen == 0 || dp->d_reclen >                  if (dp->d_reclen == 0 || dp->d_reclen >
                     dirblksiz - (offset & (dirblksiz - 1))) {                      dirblksiz - (offset & (dirblksiz - 1))) {
                         /* Corrupted directory. */                          /* Corrupted directory. */

Legend:
Removed from v.1.4.2.1  
changed lines
  Added in v.1.12.2.1

CVSweb <webmaster@jp.NetBSD.org>