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
6de24f0e
Commit
6de24f0e
authored
Aug 28, 2008
by
Alexey Dobriyan
Committed by
Al Viro
Oct 23, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH 1/2] anondev: init IDR statically
Signed-off-by:
Alexey Dobriyan
<
adobriyan@gmail.com
>
parent
8966c5e0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
8 deletions
+1
-8
fs/super.c
fs/super.c
+1
-6
include/linux/fs.h
include/linux/fs.h
+0
-1
init/main.c
init/main.c
+0
-1
No files found.
fs/super.c
View file @
6de24f0e
...
...
@@ -682,7 +682,7 @@ void emergency_remount(void)
* filesystems which don't use real block-devices. -- jrs
*/
static
struct
idr
unnamed_dev_idr
;
static
DEFINE_IDR
(
unnamed_dev_idr
)
;
static
DEFINE_SPINLOCK
(
unnamed_dev_lock
);
/* protects the above */
int
set_anon_super
(
struct
super_block
*
s
,
void
*
data
)
...
...
@@ -726,11 +726,6 @@ void kill_anon_super(struct super_block *sb)
EXPORT_SYMBOL
(
kill_anon_super
);
void
__init
unnamed_dev_init
(
void
)
{
idr_init
(
&
unnamed_dev_idr
);
}
void
kill_litter_super
(
struct
super_block
*
sb
)
{
if
(
sb
->
s_root
)
...
...
include/linux/fs.h
View file @
6de24f0e
...
...
@@ -1593,7 +1593,6 @@ extern int get_sb_pseudo(struct file_system_type *, char *,
struct
vfsmount
*
mnt
);
extern
int
simple_set_mnt
(
struct
vfsmount
*
mnt
,
struct
super_block
*
sb
);
int
__put_super_and_need_restart
(
struct
super_block
*
sb
);
void
unnamed_dev_init
(
void
);
/* Alas, no aliases. Too much hassle with bringing module.h everywhere */
#define fops_get(fops) \
...
...
init/main.c
View file @
6de24f0e
...
...
@@ -670,7 +670,6 @@ asmlinkage void __init start_kernel(void)
fork_init
(
num_physpages
);
proc_caches_init
();
buffer_init
();
unnamed_dev_init
();
key_init
();
security_init
();
vfs_caches_init
(
num_physpages
);
...
...
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