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

Commit fe5fafbe authored by Josef Bacik's avatar Josef Bacik
Browse files

Revert "Btrfs: fix permissions of empty files not affected by umask"



This reverts commit 2794ed01.

Wasn't supposed to get used in btrfs_mknod, it was supposed to be in
btrfs_create, which was done in commit
9185aa58.

Signed-off-by: default avatarJosef Bacik <jbacik@fusionio.com>
parent 5b947f1b
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -5036,12 +5036,6 @@ static int btrfs_mknod(struct inode *dir, struct dentry *dentry,
		goto out_unlock;
	}

	err = btrfs_update_inode(trans, root, inode);
	if (err) {
		drop_inode = 1;
		goto out_unlock;
	}

	/*
	* If the active LSM wants to access the inode during
	* d_instantiate it needs these. Smack checks to see