mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
btrfs: Remove redundant local zero structure
Remove redundant local zero structure, replacing it by the kernel's global ZERO_PAGE. Signed-off-by: Dulshani Gunawardhana <[email protected]> Reviewed-by: Zach Brown <[email protected]> Signed-off-by: Josef Bacik <[email protected]> Signed-off-by: Chris Mason <[email protected]>
This commit is contained in:
parent
3c45bfc152
commit
b19e684393
1 changed files with 2 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue