public inbox for linux-ext4@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ext4: don't work without procfs
@ 2011-10-03 20:46 Yargil
  2011-10-04  9:20 ` Lukas Czerner
  0 siblings, 1 reply; 4+ messages in thread
From: Yargil @ 2011-10-03 20:46 UTC (permalink / raw)
  To: linux-ext4; +Cc: Yargil

Regression from commit dd68314ccf3fb918c1fb6471817edbc60ece4b52
---
 fs/ext4/super.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index 44d0c8d..8e7298d 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -53,7 +53,9 @@
 #define CREATE_TRACE_POINTS
 #include <trace/events/ext4.h>
 
+#ifdef CONFIG_PROC_FS
 static struct proc_dir_entry *ext4_proc_root;
+#endif
 static struct kset *ext4_kset;
 static struct ext4_lazy_init *ext4_li_info;
 static struct mutex ext4_li_mtx;
@@ -812,9 +814,11 @@ static void ext4_put_super(struct super_block *sb)
 		es->s_state = cpu_to_le16(sbi->s_mount_state);
 		ext4_commit_super(sb, 1);
 	}
+#ifdef CONFIG_PROC_FS
 	if (sbi->s_proc) {
 		remove_proc_entry(sb->s_id, ext4_proc_root);
 	}
+#endif
 	kobject_del(&sbi->s_kobj);
 
 	for (i = 0; i < sbi->s_gdb_count; i++)
@@ -4984,9 +4988,11 @@ static int __init ext4_init_fs(void)
 	ext4_kset = kset_create_and_add("ext4", NULL, fs_kobj);
 	if (!ext4_kset)
 		goto out6;
+#ifdef CONFIG_PROC_FS
 	ext4_proc_root = proc_mkdir("fs/ext4", NULL);
 	if (!ext4_proc_root)
 		goto out5;
+#endif
 
 	err = ext4_init_feat_adverts();
 	if (err)
@@ -5022,8 +5028,10 @@ out2:
 out3:
 	ext4_exit_feat_adverts();
 out4:
+#ifdef CONFIG_PROC_FS
 	remove_proc_entry("fs/ext4", NULL);
 out5:
+#endif
 	kset_unregister(ext4_kset);
 out6:
 	ext4_exit_system_zone();
-- 
1.7.2.5


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-10-04 11:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-03 20:46 [PATCH] ext4: don't work without procfs Yargil
2011-10-04  9:20 ` Lukas Czerner
2011-10-04 11:03   ` yargil
2011-10-04 11:33     ` Lukas Czerner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox