aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/disk-io.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2016-11-08 12:09:03 -0500
committerDavid Sterba <dsterba@suse.com>2016-11-30 07:45:17 -0500
commitb159fa2808b1b53d784807a48ad95fa809be10b0 (patch)
treefc5c081987f9a01dae93a05162d736d91af86dff /fs/btrfs/disk-io.c
parentfba1acf9ff77656e3b9f5c0f7b6a52c93e4932ec (diff)
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/disk-io.c')
-rw-r--r--fs/btrfs/disk-io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index 21f8e597fe97..5d1da78f044b 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -1412,7 +1412,7 @@ struct btrfs_root *btrfs_create_tree(struct btrfs_trans_handle *trans,
1412 goto fail; 1412 goto fail;
1413 } 1413 }
1414 1414
1415 memset_extent_buffer(leaf, 0, 0, sizeof(struct btrfs_header)); 1415 memzero_extent_buffer(leaf, 0, sizeof(struct btrfs_header));
1416 btrfs_set_header_bytenr(leaf, leaf->start); 1416 btrfs_set_header_bytenr(leaf, leaf->start);
1417 btrfs_set_header_generation(leaf, trans->transid); 1417 btrfs_set_header_generation(leaf, trans->transid);
1418 btrfs_set_header_backref_rev(leaf, BTRFS_MIXED_BACKREF_REV); 1418 btrfs_set_header_backref_rev(leaf, BTRFS_MIXED_BACKREF_REV);
@@ -1496,7 +1496,7 @@ static struct btrfs_root *alloc_log_tree(struct btrfs_trans_handle *trans,
1496 return ERR_CAST(leaf); 1496 return ERR_CAST(leaf);
1497 } 1497 }
1498 1498
1499 memset_extent_buffer(leaf, 0, 0, sizeof(struct btrfs_header)); 1499 memzero_extent_buffer(leaf, 0, sizeof(struct btrfs_header));
1500 btrfs_set_header_bytenr(leaf, leaf->start); 1500 btrfs_set_header_bytenr(leaf, leaf->start);
1501 btrfs_set_header_generation(leaf, trans->transid); 1501 btrfs_set_header_generation(leaf, trans->transid);
1502 btrfs_set_header_backref_rev(leaf, BTRFS_MIXED_BACKREF_REV); 1502 btrfs_set_header_backref_rev(leaf, BTRFS_MIXED_BACKREF_REV);