Skip to content

Commit

Permalink
btrfs: remove unused member btrfs_root::name
Browse files Browse the repository at this point in the history
Added in 58176a9 ("Btrfs: Add per-root block accounting and sysfs
entries") in 2007, the roots had names exported in sysfs. The code
was commented out in 4df27c4 ("Btrfs: change how subvolumes
are organized") and cleaned by 182608c ("btrfs: remove old
unused commented out code").

Signed-off-by: David Sterba <dsterba@suse.com>
  • Loading branch information
kdave committed Aug 6, 2018
1 parent 616d374 commit e17385c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion fs/btrfs/ctree.h
Original file line number Diff line number Diff line change
Expand Up @@ -1219,7 +1219,6 @@ struct btrfs_root {
u64 defrag_trans_start;
struct btrfs_key defrag_progress;
struct btrfs_key defrag_max;
char *name;

/* the dirty list is only used by non-reference counted roots */
struct list_head dirty_list;
Expand Down
2 changes: 0 additions & 2 deletions fs/btrfs/disk-io.c
Original file line number Diff line number Diff line change
Expand Up @@ -1154,7 +1154,6 @@ static void __setup_root(struct btrfs_root *root, struct btrfs_fs_info *fs_info,
root->highest_objectid = 0;
root->nr_delalloc_inodes = 0;
root->nr_ordered_extents = 0;
root->name = NULL;
root->inode_tree = RB_ROOT;
INIT_RADIX_TREE(&root->delayed_nodes_tree, GFP_ATOMIC);
root->block_rsv = NULL;
Expand Down Expand Up @@ -3849,7 +3848,6 @@ static void free_fs_root(struct btrfs_root *root)
free_extent_buffer(root->commit_root);
kfree(root->free_ino_ctl);
kfree(root->free_ino_pinned);
kfree(root->name);
btrfs_put_fs_root(root);
}

Expand Down

0 comments on commit e17385c

Please sign in to comment.