Nikolay Borisov
bc877d285c
btrfs: Deduplicate extent_buffer init code
...
When a new extent buffer is allocated there are a few mandatory fields
which need to be set in order for the buffer to be sane: level,
generation, bytenr, backref_rev, owner and FSID/UUID. Currently this
is open coded in the callers of btrfs_alloc_tree_block, meaning it's
fairly high in the abstraction hierarchy of operations. This patch
solves this by simply moving this init code in btrfs_init_new_buffer,
since this is the function which initializes a newly allocated
extent buffer. No functional changes.
Signed-off-by: Nikolay Borisov <nborisov@suse.com >
Reviewed-by: David Sterba <dsterba@suse.com >
Signed-off-by: David Sterba <dsterba@suse.com >
2018-08-06 13:12:38 +02:00
..
2018-05-29 18:12:52 +02:00
2018-04-12 16:29:51 +02:00
2018-04-12 16:29:51 +02:00
2018-04-12 16:29:46 +02:00
2018-04-12 16:29:51 +02:00
2018-04-12 16:29:46 +02:00
2018-05-28 18:23:59 +02:00
2018-08-06 13:12:38 +02:00
2018-04-12 16:29:46 +02:00
2018-05-28 18:23:09 +02:00
2018-05-29 18:13:00 +02:00
2018-08-06 13:12:38 +02:00
2018-08-06 13:12:38 +02:00
2018-04-12 16:29:46 +02:00
2018-05-28 18:23:09 +02:00
2018-04-12 16:29:46 +02:00
2018-08-06 13:12:34 +02:00
2018-08-06 13:12:34 +02:00
2018-08-06 13:12:29 +02:00
2018-04-12 16:29:46 +02:00
2018-04-12 16:29:51 +02:00
2018-08-06 13:12:38 +02:00
2018-04-12 16:29:46 +02:00
2018-04-12 16:29:51 +02:00
2018-04-12 16:29:46 +02:00
2018-07-21 16:42:03 -07:00
2018-05-28 18:07:20 +02:00
2018-05-28 18:07:17 +02:00
2018-05-28 18:07:17 +02:00
2018-08-06 13:12:38 +02:00
2018-04-12 16:29:51 +02:00
2018-08-06 13:12:31 +02:00
2018-05-28 18:23:46 +02:00
2018-04-12 16:29:46 +02:00
2018-05-28 18:07:36 +02:00
2018-05-28 18:07:36 +02:00
2018-04-12 16:29:51 +02:00
2018-04-12 16:29:51 +02:00
2018-04-12 16:29:46 +02:00
2018-07-01 12:38:16 -07:00
2018-08-06 13:12:38 +02:00
2018-04-12 16:29:55 +02:00
2018-05-28 18:23:09 +02:00
2018-04-12 16:29:46 +02:00
2018-05-30 16:46:43 +02:00
2018-03-26 15:09:39 +02:00
2018-04-12 16:29:46 +02:00
2018-08-06 13:12:31 +02:00
2018-08-06 13:12:31 +02:00
2018-04-12 16:29:51 +02:00
2018-05-28 18:07:26 +02:00
2018-04-20 19:18:16 +02:00
2018-05-17 14:18:25 +02:00
2018-04-12 16:29:46 +02:00
2018-06-28 11:30:57 +02:00
2018-04-12 16:29:46 +02:00
2018-05-30 17:15:43 +02:00
2018-04-12 16:29:46 +02:00
2018-04-12 16:29:46 +02:00
2018-08-06 13:12:31 +02:00
2018-04-12 16:29:51 +02:00
2018-04-12 16:29:46 +02:00
2018-08-06 13:12:38 +02:00
2018-06-05 16:57:31 -07:00
2018-08-06 13:12:37 +02:00
2018-05-28 18:07:32 +02:00
2018-04-12 16:29:46 +02:00
2018-04-12 16:29:51 +02:00
2018-08-06 13:12:31 +02:00
2018-05-28 18:23:41 +02:00
2018-05-28 18:23:39 +02:00
2018-08-06 13:12:29 +02:00
2018-08-06 13:12:29 +02:00
2018-04-12 16:29:51 +02:00
2018-04-12 16:29:46 +02:00
2018-04-12 16:29:51 +02:00
2018-08-06 13:12:37 +02:00
2018-04-12 16:29:46 +02:00
2018-04-12 16:29:51 +02:00
2018-04-12 16:29:46 +02:00
2018-05-30 16:46:53 +02:00
2018-08-06 13:12:38 +02:00
2018-08-06 13:12:36 +02:00
2018-04-12 16:29:51 +02:00
2018-04-12 16:29:46 +02:00
2018-04-12 16:29:51 +02:00
2018-04-12 16:29:51 +02:00