Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 197982
b: refs/heads/master
c: 73459dc
h: refs/heads/master
v: v3
  • Loading branch information
Dmitry Monakhov authored and Al Viro committed May 21, 2010
1 parent 1d08b09 commit 0505db1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9eed1fb721c6c512795f8847bccc413f3a1143bb
refs/heads/master: 73459dcc67e77aa5cb28d51b2d84dd145977ace3
11 changes: 1 addition & 10 deletions trunk/fs/nilfs2/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -280,16 +280,7 @@ struct inode *nilfs_new_inode(struct inode *dir, int mode)
/* reference count of i_bh inherits from nilfs_mdt_read_block() */

atomic_inc(&sbi->s_inodes_count);

inode->i_uid = current_fsuid();
if (dir->i_mode & S_ISGID) {
inode->i_gid = dir->i_gid;
if (S_ISDIR(mode))
mode |= S_ISGID;
} else
inode->i_gid = current_fsgid();

inode->i_mode = mode;
inode_init_owner(inode, dir, mode);
inode->i_ino = ino;
inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME;

Expand Down

0 comments on commit 0505db1

Please sign in to comment.