kernels/linux-2.4.0/fs/dcache.c
/**
 * d_instantiate - fill in inode information for a dentry
 * @entry: dentry to complete
 * @inode: inode to attach to this dentry
 *
 * Fill in inode information in the entry.
 *
 * This turns negative dentries into productive full members
 * of society.
 *
 * NOTE! This assumes that the inode count has been incremented
 * (or otherwise set) by the caller to indicate that it is now
 * in use by the dcache.
 */
fill in inode information for a dentry
@entry: dentry to complete
@inode: inode to attach to this dentry

Fill in inode information in the entry.

This turns negative dentries into productive full members
of society.

NOTE. This assumes that the inode count has been incremented
(or otherwise set) by the caller to indicate that it is now
in use by the dcache.
fill in inode information for a dentry @entry : dentry to complete @inode : inode to attach to this dentry Fill in inode information in the entry . This turns negative dentries into productive full members of society . NOTE . This assumes that the inode count has been incremented ( or otherwise set ) by the caller to indicate that it is now in use by the dcache .
void d_instantiate(struct dentry *entry, struct inode * inode)
{
	spin_lock(&dcache_lock);
	if (inode)
		list_add(&entry->d_alias, &inode->i_dentry);
	entry->d_inode = inode;
	spin_unlock(&dcache_lock);
}
void d_instantiate ( struct dentry * entry , struct inode * inode ) { spin_lock ( & dcache_lock ) ; if ( inode ) list_add ( & entry -> d_alias , & inode -> i_dentry ) ; entry -> d_inode = inode ; spin_unlock ( & dcache_lock ) ; }
d_instantiate - fill in inode information for a dentry
 @entry: dentry to complete
 @inode: inode to attach to this dentry
d_instantiate - fill in inode information for a dentry @entry : dentry to complete @inode : inode to attach to this dentry