summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/file-item.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2016-11-08 18:09:03 +0100
committerDavid Sterba <dsterba@suse.com>2016-11-30 13:45:17 +0100
commitb159fa2808b1b53d784807a48ad95fa809be10b0 (patch)
treefc5c081987f9a01dae93a05162d736d91af86dff /fs/btrfs/file-item.c
parentfba1acf9ff77656e3b9f5c0f7b6a52c93e4932ec (diff)
downloadtalos-op-linux-b159fa2808b1b53d784807a48ad95fa809be10b0.tar.gz
talos-op-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.c2
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;
OpenPOWER on IntegriCloud