Skip to contentSkip to conversation

btrfs: Remove unused sysfs code

PATCH New Maarten Lankhorst 1 participant 1 message Jun 16, 2011 Btrfs file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 btrfs: Remove unused sysfs code

Removes code no longer used. The sysfs file itself is kept, because the btrfs developers expressed interest in putting new entries to sysfs.

---

fs/btrfs/ctree.h +0 -1
index 378b5b4..81f4083 100644
@@ -1181,7 +1181,6 @@ struct btrfs_root {
 	struct btrfs_key defrag_max;
 	int defrag_running;
 	char *name;
-	int in_sysfs;
 
 	/* the dirty list is only used by non-reference counted roots */
 	struct list_head dirty_list;
fs/btrfs/disk-io.c +0 -1
index 9f68c68..5df6d8f 100644
@@ -1044,7 +1044,6 @@ static int __setup_root(u32 nodesize, u32 leafsize, u32 sectorsize,
 	root->last_trans = 0;
 	root->highest_objectid = 0;
 	root->name = NULL;
-	root->in_sysfs = 0;
 	root->inode_tree = RB_ROOT;
 	INIT_RADIX_TREE(&root->delayed_nodes_tree, GFP_ATOMIC);
 	root->block_rsv = NULL;
fs/btrfs/sysfs.c +0 -146

152 lines not on this page · raw message