Skip to content

Commit 7a19006

Browse files
committed
kernfs: remove unneeded #if 0 guard
Commit f2eb478 ("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. Fixes: f2eb478 ("kernfs: move struct kernfs_root out of the public view.") Cc: Tejun Heo <[email protected]> Reported-by: Al Viro <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 4a248f8 commit 7a19006

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

include/linux/kernfs.h

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -185,26 +185,6 @@ struct kernfs_syscall_ops {
185185
struct kernfs_root *root);
186186
};
187187

188-
#if 0
189-
struct 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-
208188
struct kernfs_node *kernfs_root_to_node(struct kernfs_root *root);
209189

210190
struct kernfs_open_file {

0 commit comments

Comments
 (0)