diff options
author | David Sterba <dsterba@suse.com> | 2016-11-08 18:09:03 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-11-30 13:45:17 +0100 |
commit | b159fa2808b1b53d784807a48ad95fa809be10b0 (patch) | |
tree | fc5c081987f9a01dae93a05162d736d91af86dff /fs/btrfs/volumes.c | |
parent | fba1acf9ff77656e3b9f5c0f7b6a52c93e4932ec (diff) | |
download | linux-stable-b159fa2808b1b53d784807a48ad95fa809be10b0.tar.gz linux-stable-b159fa2808b1b53d784807a48ad95fa809be10b0.tar.bz2 linux-stable-b159fa2808b1b53d784807a48ad95fa809be10b0.zip |
btrfs: remove constant parameter to memset_extent_buffer and rename it
The only memset we do is to 0, so sink the parameter to the function and
simplify all calls. Rename the function to reflect the behaviour.
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/volumes.c')
-rw-r--r-- | fs/btrfs/volumes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index 7eebf556feb7..1886b94f13ac 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c @@ -3062,7 +3062,7 @@ static int insert_balance_item(struct btrfs_root *root, leaf = path->nodes[0]; item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_balance_item); - memset_extent_buffer(leaf, 0, (unsigned long)item, sizeof(*item)); + memzero_extent_buffer(leaf, (unsigned long)item, sizeof(*item)); btrfs_cpu_balance_args_to_disk(&disk_bargs, &bctl->data); btrfs_set_balance_data(leaf, item, &disk_bargs); |