Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
121daf5f
Commit
121daf5f
authored
Mar 30, 2013
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reiserfs: use proc_remove_subtree()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
bdcecec3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
21 deletions
+9
-21
fs/reiserfs/procfs.c
fs/reiserfs/procfs.c
+9
-21
No files found.
fs/reiserfs/procfs.c
View file @
121daf5f
...
@@ -499,29 +499,17 @@ int reiserfs_proc_info_init(struct super_block *sb)
...
@@ -499,29 +499,17 @@ 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
;
char
b
[
BDEVNAME_SIZE
];
if
(
de
)
{
char
*
s
;
char
b
[
BDEVNAME_SIZE
];
char
*
s
;
/* Some block devices use /'s */
/* Some block devices use /'s */
strlcpy
(
b
,
reiserfs_bdevname
(
sb
),
BDEVNAME_SIZE
);
strlcpy
(
b
,
reiserfs_bdevname
(
sb
),
BDEVNAME_SIZE
);
s
=
strchr
(
b
,
'/'
);
s
=
strchr
(
b
,
'/'
);
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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment