version 1.26, 2008/06/28 01:34:06 |
version 1.29, 2009/03/18 10:22:46 |
Line 140 ufsdirhash_build(struct inode *ip) |
|
Line 140 ufsdirhash_build(struct inode *ip) |
|
} |
} |
|
|
/* Don't hash removed directories. */ |
/* Don't hash removed directories. */ |
if (ip->i_ffs_effnlink == 0) |
if (ip->i_nlink == 0) |
return (-1); |
return (-1); |
|
|
vp = ip->i_vnode; |
vp = ip->i_vnode; |
Line 255 ufsdirhash_build(struct inode *ip) |
|
Line 255 ufsdirhash_build(struct inode *ip) |
|
return (0); |
return (0); |
|
|
fail: |
fail: |
|
DIRHASH_UNLOCK(dh); |
if (dh->dh_hash != NULL) { |
if (dh->dh_hash != NULL) { |
for (i = 0; i < narrays; i++) |
for (i = 0; i < narrays; i++) |
if (dh->dh_hash[i] != NULL) |
if (dh->dh_hash[i] != NULL) |
Line 1146 ufsdirhash_sysctl_init(void) |
|
Line 1147 ufsdirhash_sysctl_init(void) |
|
} |
} |
|
|
void |
void |
ufsdirhash_init() |
ufsdirhash_init(void) |
{ |
{ |
|
|
mutex_init(&ufsdirhash_lock, MUTEX_DEFAULT, IPL_NONE); |
mutex_init(&ufsdirhash_lock, MUTEX_DEFAULT, IPL_NONE); |