version 1.26, 2008/06/28 01:34:06 |
version 1.28, 2009/02/22 20:28:07 |
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) |