diff options
author | Dulshani Gunawardhana <dulshani.gunawardhana89@gmail.com> | 2013-10-31 00:59:38 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2013-11-11 22:11:39 -0500 |
commit | b19e684393752ec129a36924e6c270daf79676d6 (patch) | |
tree | 119044cd2bc3f3202fcc1810e53838b09601568e /fs/btrfs/ioctl.c | |
parent | 3c45bfc1528ccb8b94c06d5740854bb75f8a92fb (diff) |
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 <dulshani.gunawardhana89@gmail.com>
Reviewed-by: Zach Brown <zab@redhat.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'fs/btrfs/ioctl.c')
-rw-r--r-- | fs/btrfs/ioctl.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index 9ea05506cb84..78d20482b72a 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c | |||
@@ -368,9 +368,8 @@ static noinline int btrfs_ioctl_fitrim(struct file *file, void __user *arg) | |||
368 | 368 | ||
369 | int btrfs_is_empty_uuid(u8 *uuid) | 369 | int btrfs_is_empty_uuid(u8 *uuid) |
370 | { | 370 | { |
371 | static char empty_uuid[BTRFS_UUID_SIZE] = {0}; | 371 | BUILD_BUG_ON(BTRFS_UUID_SIZE > PAGE_SIZE); |
372 | 372 | return !memcmp(uuid, empty_zero_page, BTRFS_UUID_SIZE); | |
373 | return !memcmp(uuid, empty_uuid, BTRFS_UUID_SIZE); | ||
374 | } | 373 | } |
375 | 374 | ||
376 | static noinline int create_subvol(struct inode *dir, | 375 | static noinline int create_subvol(struct inode *dir, |