namei.c (18bb1db3e7607e4a997d50991a6f9fa5b0f8722c) | namei.c (4acdaf27ebe2034c342f3be57ef49aed1ad885ef) |
---|---|
1/* 2 * Copyright 2000 by Hans Reiser, licensing governed by reiserfs/README 3 * 4 * Trivial changes by Alan Cox to remove EHASHCOLLISION for compatibility 5 * 6 * Trivial Changes: 7 * Rights granted to Hans Reiser to redistribute under other terms providing 8 * he accepts all liability including but not limited to patent, fitness --- 558 unchanged lines hidden (view full) --- 567 /* the quota init calls have to know who to charge the quota to, so 568 ** we have to set uid and gid here 569 */ 570 inode_init_owner(inode, dir, mode); 571 dquot_initialize(inode); 572 return 0; 573} 574 | 1/* 2 * Copyright 2000 by Hans Reiser, licensing governed by reiserfs/README 3 * 4 * Trivial changes by Alan Cox to remove EHASHCOLLISION for compatibility 5 * 6 * Trivial Changes: 7 * Rights granted to Hans Reiser to redistribute under other terms providing 8 * he accepts all liability including but not limited to patent, fitness --- 558 unchanged lines hidden (view full) --- 567 /* the quota init calls have to know who to charge the quota to, so 568 ** we have to set uid and gid here 569 */ 570 inode_init_owner(inode, dir, mode); 571 dquot_initialize(inode); 572 return 0; 573} 574 |
575static int reiserfs_create(struct inode *dir, struct dentry *dentry, int mode, | 575static int reiserfs_create(struct inode *dir, struct dentry *dentry, umode_t mode, |
576 struct nameidata *nd) 577{ 578 int retval; 579 struct inode *inode; 580 /* We need blocks for transaction + (user+group)*(quotas for new inode + update of quota for directory owner) */ 581 int jbegin_count = 582 JOURNAL_PER_BALANCE_CNT * 2 + 583 2 * (REISERFS_QUOTA_INIT_BLOCKS(dir->i_sb) + --- 981 unchanged lines hidden --- | 576 struct nameidata *nd) 577{ 578 int retval; 579 struct inode *inode; 580 /* We need blocks for transaction + (user+group)*(quotas for new inode + update of quota for directory owner) */ 581 int jbegin_count = 582 JOURNAL_PER_BALANCE_CNT * 2 + 583 2 * (REISERFS_QUOTA_INIT_BLOCKS(dir->i_sb) + --- 981 unchanged lines hidden --- |