Loading fs/reiserfs/procfs.c +9 −21 Original line number Original line Diff line number Diff line Loading @@ -499,6 +499,7 @@ int reiserfs_proc_info_init(struct super_block *sb) int reiserfs_proc_info_done(struct super_block *sb) int reiserfs_proc_info_done(struct super_block *sb) { { struct proc_dir_entry *de = REISERFS_SB(sb)->procdir; struct proc_dir_entry *de = REISERFS_SB(sb)->procdir; if (de) { char b[BDEVNAME_SIZE]; char b[BDEVNAME_SIZE]; char *s; char *s; Loading @@ -508,20 +509,7 @@ int reiserfs_proc_info_done(struct super_block *sb) if (s) if (s) *s = '!'; *s = '!'; if (de) { remove_proc_subtree(b, proc_info_root); remove_proc_entry("journal", de); remove_proc_entry("oidmap", de); remove_proc_entry("on-disk-super", de); remove_proc_entry("bitmap", de); remove_proc_entry("per-level", de); remove_proc_entry("super", de); remove_proc_entry("version", de); } spin_lock(&__PINFO(sb).lock); __PINFO(sb).exiting = 1; spin_unlock(&__PINFO(sb).lock); if (proc_info_root) { remove_proc_entry(b, proc_info_root); REISERFS_SB(sb)->procdir = NULL; REISERFS_SB(sb)->procdir = NULL; } } return 0; return 0; Loading Loading
fs/reiserfs/procfs.c +9 −21 Original line number Original line Diff line number Diff line Loading @@ -499,6 +499,7 @@ int reiserfs_proc_info_init(struct super_block *sb) int reiserfs_proc_info_done(struct super_block *sb) int reiserfs_proc_info_done(struct super_block *sb) { { struct proc_dir_entry *de = REISERFS_SB(sb)->procdir; struct proc_dir_entry *de = REISERFS_SB(sb)->procdir; if (de) { char b[BDEVNAME_SIZE]; char b[BDEVNAME_SIZE]; char *s; char *s; Loading @@ -508,20 +509,7 @@ int reiserfs_proc_info_done(struct super_block *sb) if (s) if (s) *s = '!'; *s = '!'; if (de) { remove_proc_subtree(b, proc_info_root); remove_proc_entry("journal", de); remove_proc_entry("oidmap", de); remove_proc_entry("on-disk-super", de); remove_proc_entry("bitmap", de); remove_proc_entry("per-level", de); remove_proc_entry("super", de); remove_proc_entry("version", de); } spin_lock(&__PINFO(sb).lock); __PINFO(sb).exiting = 1; spin_unlock(&__PINFO(sb).lock); if (proc_info_root) { remove_proc_entry(b, proc_info_root); REISERFS_SB(sb)->procdir = NULL; REISERFS_SB(sb)->procdir = NULL; } } return 0; return 0; Loading