Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 79683f2d authored by Chris Mason's avatar Chris Mason
Browse files

Btrfs: Use current_fsuid/gid



This fixes compile problems with linux-next

Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
parent 15916de8
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -3422,8 +3422,8 @@ static struct inode *btrfs_new_inode(struct btrfs_trans_handle *trans,
	if (objectid > root->highest_inode)
		root->highest_inode = objectid;

	inode->i_uid = current->fsuid;
	inode->i_gid = current->fsgid;
	inode->i_uid = current_fsuid();
	inode->i_gid = current_fsgid();
	inode->i_mode = mode;
	inode->i_ino = objectid;
	inode_set_bytes(inode, 0);