kernels/linux-2.4.0/fs/dcache.c
/*
 * Throw away a dentry - free the inode, dput the parent.
 * This requires that the LRU list has already been
 * removed.
 * Called with dcache_lock, drops it and then regains.
 */
Throw away a dentry - free the inode, dput the parent.
This requires that the LRU list has already been
removed.
Called with dcache_lock, drops it and then regains.
Throw away a dentry - free the inode dput the parent . This requires that the LRU list has already been removed . Called with dcache_lock drops it and then regains .
static inline void prune_one_dentry(struct dentry * dentry)
{
	struct dentry * parent;
	list_del_init(&dentry->d_hash);
	list_del(&dentry->d_child);
	dentry_iput(dentry);
	parent = dentry->d_parent;
	d_free(dentry);
	if (parent != dentry)
		dput(parent);
	spin_lock(&dcache_lock);
}
static inline void prune_one_dentry ( struct dentry * dentry ) { struct dentry * parent ; list_del_init ( & dentry -> d_hash ) ; list_del ( & dentry -> d_child ) ; dentry_iput ( dentry ) ; parent = dentry -> d_parent ; d_free ( dentry ) ; if ( parent != dentry ) dput ( parent ) ; spin_lock ( & dcache_lock ) ; }
Throw away a dentry - free the inode, dput the parent.
Throw away a dentry - free the inode dput the parent .