Skip to content

Commit

Permalink
Btrfs: remove rb_node field from the delayed ref node structure
Browse files Browse the repository at this point in the history
After the last big change in the delayed references code that was needed
for the last qgroups rework, the red black tree node field of struct
btrfs_delayed_ref_node is no longer used, so just remove it, this helps
us save some memory (since struct rb_node is 24 bytes on x86_64) for
these structures.

Signed-off-by: Filipe Manana <[email protected]>
  • Loading branch information
fdmanana committed Nov 19, 2016
1 parent 001895b commit 2a2a83d
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions fs/btrfs/delayed-ref.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,6 @@
* ref_head. Must clean this mess up later.
*/
struct btrfs_delayed_ref_node {
/*
* ref_head use rb tree, stored in ref_root->href.
* indexed by bytenr
*/
struct rb_node rb_node;

/*data/tree ref use list, stored in ref_head->ref_list. */
struct list_head list;

Expand Down

0 comments on commit 2a2a83d

Please sign in to comment.