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/file-item.c | |
parent | btrfs: use specialized page copying helpers in btrfs_clone_extent_buffer (diff) | |
download | linux-b159fa2808b1b53d784807a48ad95fa809be10b0.tar.xz linux-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/file-item.c')
-rw-r--r-- | fs/btrfs/file-item.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/file-item.c b/fs/btrfs/file-item.c index d0d571c47d33..43418c08b110 100644 --- a/fs/btrfs/file-item.c +++ b/fs/btrfs/file-item.c @@ -689,7 +689,7 @@ int btrfs_del_csums(struct btrfs_trans_handle *trans, item_offset = btrfs_item_ptr_offset(leaf, path->slots[0]); - memset_extent_buffer(leaf, 0, item_offset + offset, + memzero_extent_buffer(leaf, item_offset + offset, shift_len); key.offset = bytenr; |