int jbegin_count = JOURNAL_PER_BALANCE_CNT * 3 + 2 * REISERFS_QUOTA_TRANS_BLOCKS; 
int jbegin_count = JOURNAL_PER_BALANCE_CNT * 3 + 2 * REISERFS_QUOTA_TRANS_BLOCKS(dir->i_sb); 
static int reiserfs_link (struct dentry * old_dentry, struct inode * dir, struct dentry * dentry){    int retval;    struct inode *inode = old_dentry->d_inode;    struct reiserfs_transaction_handle th ;    /* We need blocks for transaction + update of quotas for the owners of the directory */    int jbegin_count = JOURNAL_PER_BALANCE_CNT * 3 + 2 * REISERFS_QUOTA_TRANS_BLOCKS;    reiserfs_write_lock(dir->i_sb);    if (inode->i_nlink >= REISERFS_LINK_MAX) {	//FIXME: sd_nlink is 32 bit for new files	reiserfs_write_unlock(dir->i_sb);	return -EMLINK;    }    if (inode->i_nlink == 0) {        reiserfs_write_unlock(dir->i_sb);        return -ENOENT;    }    /* inc before scheduling so reiserfs_unlink knows we are here */    inode->i_nlink++;    retval = journal_begin(&th, dir->i_sb, jbegin_count) ;    if (retval) {        inode->i_nlink--;        reiserfs_write_unlock (dir->i_sb);        return retval;    }    /* create new entry */    retval = reiserfs_add_entry (&th, dir, dentry->d_name.name, dentry->d_name.len,				 inode, 1/*visible*/);    reiserfs_update_inode_transaction(inode) ;    reiserfs_update_inode_transaction(dir) ;    if (retval) {	int err;	inode->i_nlink--;	err = journal_end(&th, dir->i_sb, jbegin_count) ;	reiserfs_write_unlock(dir->i_sb);	return err ? err : retval;    }    inode->i_ctime = CURRENT_TIME_SEC;    reiserfs_update_sd (&th, inode);    atomic_inc(&inode->i_count) ;    d_instantiate(dentry, inode);    retval = journal_end(&th, dir->i_sb, jbegin_count) ;    reiserfs_write_unlock(dir->i_sb);    return retval;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/556a2a45bce1740f035befaa7201e4ad836c7257/namei.c/clean/fs/reiserfs/namei.c