[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.24 and 1.25

version 1.24, 2008/06/15 21:18:06 version 1.25, 2008/06/16 02:36:27
Line 178  ufsdirhash_build(struct inode *ip)
Line 178  ufsdirhash_build(struct inode *ip)
         }          }
         memset(dh, 0, sizeof(*dh));          memset(dh, 0, sizeof(*dh));
         mutex_init(&dh->dh_lock, MUTEX_DEFAULT, IPL_NONE);          mutex_init(&dh->dh_lock, MUTEX_DEFAULT, IPL_NONE);
           DIRHASH_LOCK(dh);
         dh->dh_hashsz = narrays * sizeof(dh->dh_hash[0]);          dh->dh_hashsz = narrays * sizeof(dh->dh_hash[0]);
         dh->dh_hash = kmem_zalloc(dh->dh_hashsz, KM_NOSLEEP);          dh->dh_hash = kmem_zalloc(dh->dh_hashsz, KM_NOSLEEP);
         dh->dh_blkfreesz = nblocks * sizeof(dh->dh_blkfree[0]);          dh->dh_blkfreesz = nblocks * sizeof(dh->dh_blkfree[0]);
Line 247  ufsdirhash_build(struct inode *ip)
Line 248  ufsdirhash_build(struct inode *ip)
         DIRHASHLIST_LOCK();          DIRHASHLIST_LOCK();
         TAILQ_INSERT_TAIL(&ufsdirhash_list, dh, dh_list);          TAILQ_INSERT_TAIL(&ufsdirhash_list, dh, dh_list);
         dh->dh_onlist = 1;          dh->dh_onlist = 1;
           DIRHASH_UNLOCK(dh);
         DIRHASHLIST_UNLOCK();          DIRHASHLIST_UNLOCK();
         return (0);          return (0);
   

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25

CVSweb <webmaster@jp.NetBSD.org>