kernels/linux-2.4.0/fs/dcache.c
/**
 * d_delete - delete a dentry
 * @dentry: The dentry to delete
 *
 * Turn the dentry into a negative dentry if possible, otherwise
 * remove it from the hash queues so it can be deleted later
 */


Turn the dentry into a negative dentry if possible, otherwise
remove it from the hash queues so it can be deleted later
Turn the dentry into a negative dentry if possible otherwise remove it from the hash queues so it can be deleted later
void d_delete(struct dentry * dentry)
{
	spin_lock(&dcache_lock);
	if (atomic_read(&dentry->d_count) == 1) {
		dentry_iput(dentry);
		return;
	}
	spin_unlock(&dcache_lock);
	d_drop(dentry);
}
void d_delete ( struct dentry * dentry ) { spin_lock ( & dcache_lock ) ; if ( atomic_read ( & dentry -> d_count ) == 1 ) { dentry_iput ( dentry ) ; return ; } spin_unlock ( & dcache_lock ) ; d_drop ( dentry ) ; }
d_delete - delete a dentry
 @dentry: The dentry to delete
d_delete - delete a dentry @dentry : The dentry to delete
/*
	 * Are we the only user?
	 */ /*
	 * If not, just drop the dentry and let dput
	 * pick up the tab..
	 */