int jbegin_count = JOURNAL_PER_BALANCE_CNT * 3 + 2 * (REISERFS_QUOTA_INIT_BLOCKS+REISERFS_QUOTA_TRANS_BLOCKS); 
int jbegin_count = JOURNAL_PER_BALANCE_CNT * 3 + 2 * (REISERFS_QUOTA_INIT_BLOCKS(dir->i_sb)+REISERFS_QUOTA_TRANS_BLOCKS(dir->i_sb)); 
static int reiserfs_mkdir (struct inode * dir, struct dentry *dentry, int mode){    int retval;    struct inode * inode;    struct reiserfs_transaction_handle th ;    /* We need blocks for transaction + (user+group)*(quotas for new inode + update of quota for directory owner) */    int jbegin_count = JOURNAL_PER_BALANCE_CNT * 3 + 2 * (REISERFS_QUOTA_INIT_BLOCKS+REISERFS_QUOTA_TRANS_BLOCKS);    int locked;#ifdef DISPLACE_NEW_PACKING_LOCALITIES    /* set flag that new packing locality created and new blocks for the content     * of that directory are not displaced yet */    REISERFS_I(dir)->new_packing_locality = 1;#endif    mode = S_IFDIR | mode;    if (!(inode = new_inode(dir->i_sb))) {	return -ENOMEM ;    }    new_inode_init(inode, dir, mode);    locked = reiserfs_cache_default_acl (dir);    reiserfs_write_lock(dir->i_sb);    if (locked)        reiserfs_write_lock_xattrs (dir->i_sb);    retval = journal_begin(&th, dir->i_sb, jbegin_count) ;    if (retval) {        drop_new_inode (inode);        goto out_failed;    }    /* inc the link count now, so another writer doesn't overflow it while    ** we sleep later on.    */    INC_DIR_INODE_NLINK(dir)    retval = reiserfs_new_inode (&th, dir, mode, NULL/*symlink*/,				old_format_only (dir->i_sb) ? 				EMPTY_DIR_SIZE_V1 : EMPTY_DIR_SIZE,				dentry, inode);    if (retval) {	dir->i_nlink-- ;	goto out_failed;    }    if (locked) {	reiserfs_write_unlock_xattrs (dir->i_sb);	locked = 0;    }    reiserfs_update_inode_transaction(inode) ;    reiserfs_update_inode_transaction(dir) ;    inode->i_op = &reiserfs_dir_inode_operations;    inode->i_fop = &reiserfs_dir_operations;    // note, _this_ add_entry will not update dir's stat data    retval = reiserfs_add_entry (&th, dir, dentry->d_name.name, dentry->d_name.len, 				inode, 1/*visible*/);    if (retval) {	int err;	inode->i_nlink = 0;	DEC_DIR_INODE_NLINK(dir);	reiserfs_update_sd (&th, inode);	err = journal_end(&th, dir->i_sb, jbegin_count) ;	if (err)	    retval = err;	iput (inode);	goto out_failed;    }    // the above add_entry did not update dir's stat data    reiserfs_update_sd (&th, dir);    d_instantiate(dentry, inode);    retval = journal_end(&th, dir->i_sb, jbegin_count) ;out_failed:    if (locked)        reiserfs_write_unlock_xattrs (dir->i_sb);    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