File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -127,11 +127,13 @@ static int __init netfs_init(void)
127
127
if (mempool_init_slab_pool (& netfs_subrequest_pool , 100 , netfs_subrequest_slab ) < 0 )
128
128
goto error_subreqpool ;
129
129
130
+ #ifdef CONFIG_PROC_FS
130
131
if (!proc_mkdir ("fs/netfs" , NULL ))
131
132
goto error_proc ;
132
133
if (!proc_create_seq ("fs/netfs/requests" , S_IFREG | 0444 , NULL ,
133
134
& netfs_requests_seq_ops ))
134
135
goto error_procfile ;
136
+ #endif
135
137
#ifdef CONFIG_FSCACHE_STATS
136
138
if (!proc_create_single ("fs/netfs/stats" , S_IFREG | 0444 , NULL ,
137
139
netfs_stats_show ))
@@ -144,9 +146,11 @@ static int __init netfs_init(void)
144
146
return 0 ;
145
147
146
148
error_fscache :
149
+ #ifdef CONFIG_PROC_FS
147
150
error_procfile :
148
151
remove_proc_subtree ("fs/netfs" , NULL );
149
152
error_proc :
153
+ #endif
150
154
mempool_exit (& netfs_subrequest_pool );
151
155
error_subreqpool :
152
156
kmem_cache_destroy (netfs_subrequest_slab );
You can’t perform that action at this time.
0 commit comments