Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 197976
b: refs/heads/master
c: ecc11fa
h: refs/heads/master
v: v3
  • Loading branch information
Dmitry Monakhov authored and Al Viro committed May 21, 2010
1 parent b669787 commit ff2a1f4
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: 319b2be49e91398eae07db4dfc29972846dec649
refs/heads/master: ecc11fabf7ce16309112afe68fac466193ee7520
11 changes: 1 addition & 10 deletions trunk/fs/btrfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -4121,16 +4121,7 @@ static struct inode *btrfs_new_inode(struct btrfs_trans_handle *trans,
if (ret != 0)
goto fail;

inode->i_uid = current_fsuid();

if (dir && (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 = objectid;
inode_set_bytes(inode, 0);
inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME;
Expand Down

0 comments on commit ff2a1f4

Please sign in to comment.