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

Commit b19e6843 authored by Dulshani Gunawardhana's avatar Dulshani Gunawardhana Committed by Chris Mason
Browse files

btrfs: Remove redundant local zero structure



Remove redundant local zero structure, replacing it by the kernel's
global ZERO_PAGE.

Signed-off-by: default avatarDulshani Gunawardhana <dulshani.gunawardhana89@gmail.com>
Reviewed-by: default avatarZach Brown <zab@redhat.com>
Signed-off-by: default avatarJosef Bacik <jbacik@fusionio.com>
Signed-off-by: default avatarChris Mason <chris.mason@fusionio.com>
parent 3c45bfc1
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -368,9 +368,8 @@ static noinline int btrfs_ioctl_fitrim(struct file *file, void __user *arg)

int btrfs_is_empty_uuid(u8 *uuid)
{
	static char empty_uuid[BTRFS_UUID_SIZE] = {0};

	return !memcmp(uuid, empty_uuid, BTRFS_UUID_SIZE);
	BUILD_BUG_ON(BTRFS_UUID_SIZE > PAGE_SIZE);
	return !memcmp(uuid, empty_zero_page, BTRFS_UUID_SIZE);
}

static noinline int create_subvol(struct inode *dir,