History

kernfs: remove unneeded #if 0 guard

Commit f2eb478f2f32 ("kernfs: move struct kernfs_root out of the public view.") moved kernfs_root out of kernfs.h, but my debugging code of a #if 0 was left in accidentally. Fix that up by removing the guards.

Greg Kroah-Hartman committed 4 years ago

Commit 7a190061 parent 4a248f81 file · +0 −20Browse files

Showing the changes to include (1 of 1 file). Show all

Unified · Split

include/linux/kernfs.h+0−20
@@ -185,26 +185,6 @@ struct kernfs_syscall_ops { · 184 unmodified lines
185 struct kernfs_root *root);185 struct kernfs_root *root);
186};186};
187 187
188#if 0
189struct kernfs_root {
190 /* published fields */
191 struct kernfs_node *kn;
192 unsigned int flags; /* KERNFS_ROOT_* flags */
193
194 /* private fields, do not use outside kernfs proper */
195 struct idr ino_idr;
196 u32 last_id_lowbits;
197 u32 id_highbits;
198 struct kernfs_syscall_ops *syscall_ops;
199
200 /* list of kernfs_super_info of this root, protected by kernfs_rwsem */
201 struct list_head supers;
202
203 wait_queue_head_t deactivate_waitq;
204 struct rw_semaphore kernfs_rwsem;
205};
206#endif
207
208struct kernfs_node *kernfs_root_to_node(struct kernfs_root *root);188struct kernfs_node *kernfs_root_to_node(struct kernfs_root *root);
209 189
210struct kernfs_open_file {190struct kernfs_open_file {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t