[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.5 and 1.5.2.1

version 1.5, 2005/07/10 01:08:52 version 1.5.2.1, 2005/10/20 03:00:31
Line 198  ufsdirhash_build(struct inode *ip)
Line 198  ufsdirhash_build(struct inode *ip)
                 if ((pos & bmask) == 0) {                  if ((pos & bmask) == 0) {
                         if (bp != NULL)                          if (bp != NULL)
                                 brelse(bp);                                  brelse(bp);
                         if (VOP_BLKATOFF(vp, (off_t)pos, NULL, &bp) != 0)                          if (UFS_BLKATOFF(vp, (off_t)pos, NULL, &bp) != 0)
                                 goto fail;                                  goto fail;
                 }                  }
   
Line 393  restart:
Line 393  restart:
                         if (bp != NULL)                          if (bp != NULL)
                                 brelse(bp);                                  brelse(bp);
                         blkoff = offset & ~bmask;                          blkoff = offset & ~bmask;
                         if (VOP_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 *)(bp->b_data + (offset & bmask));
Line 502  ufsdirhash_findfree(struct inode *ip, in
Line 502  ufsdirhash_findfree(struct inode *ip, in
             dh->dh_blkfree[dirblock] >= howmany(slotneeded, DIRALIGN));              dh->dh_blkfree[dirblock] >= howmany(slotneeded, DIRALIGN));
         DIRHASH_UNLOCK(dh);          DIRHASH_UNLOCK(dh);
         pos = dirblock * dirblksiz;          pos = dirblock * dirblksiz;
         error = VOP_BLKATOFF(ip->i_vnode, (off_t)pos, (void *)&dp, &bp);          error = UFS_BLKATOFF(ip->i_vnode, (off_t)pos, (void *)&dp, &bp);
         if (error)          if (error)
                 return (-1);                  return (-1);
         /* Find the first entry with free space. */          /* Find the first entry with free space. */

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.5.2.1

CVSweb <webmaster@jp.NetBSD.org>