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
nexedi
linux
Commits
6dceb11b
Commit
6dceb11b
authored
Jun 19, 2002
by
Stephen Rothwell
Committed by
Linus Torvalds
Jun 19, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] ext2 statics
This patch just changes some things in ext2 to be static.
parent
8d50caa1
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
7 deletions
+6
-7
fs/ext2/balloc.c
fs/ext2/balloc.c
+1
-1
fs/ext2/ext2.h
fs/ext2/ext2.h
+0
-3
fs/ext2/super.c
fs/ext2/super.c
+5
-3
No files found.
fs/ext2/balloc.c
View file @
6dceb11b
...
...
@@ -602,7 +602,7 @@ static inline int test_root(int a, int b)
}
}
int
ext2_group_sparse
(
int
group
)
static
int
ext2_group_sparse
(
int
group
)
{
return
(
test_root
(
group
,
3
)
||
test_root
(
group
,
5
)
||
test_root
(
group
,
7
));
...
...
fs/ext2/ext2.h
View file @
6dceb11b
...
...
@@ -92,10 +92,7 @@ extern NORET_TYPE void ext2_panic (struct super_block *, const char *,
extern
void
ext2_warning
(
struct
super_block
*
,
const
char
*
,
const
char
*
,
...)
__attribute__
((
format
(
printf
,
3
,
4
)));
extern
void
ext2_update_dynamic_rev
(
struct
super_block
*
sb
);
extern
void
ext2_put_super
(
struct
super_block
*
);
extern
void
ext2_write_super
(
struct
super_block
*
);
extern
int
ext2_remount
(
struct
super_block
*
,
int
*
,
char
*
);
extern
int
ext2_statfs
(
struct
super_block
*
,
struct
statfs
*
);
/*
* Inodes and files operations
...
...
fs/ext2/super.c
View file @
6dceb11b
...
...
@@ -31,6 +31,8 @@
static
void
ext2_sync_super
(
struct
super_block
*
sb
,
struct
ext2_super_block
*
es
);
static
int
ext2_remount
(
struct
super_block
*
sb
,
int
*
flags
,
char
*
data
);
static
int
ext2_statfs
(
struct
super_block
*
sb
,
struct
statfs
*
buf
);
static
char
error_buf
[
1024
];
...
...
@@ -123,7 +125,7 @@ void ext2_update_dynamic_rev(struct super_block *sb)
*/
}
void
ext2_put_super
(
struct
super_block
*
sb
)
static
void
ext2_put_super
(
struct
super_block
*
sb
)
{
int
db_count
;
int
i
;
...
...
@@ -772,7 +774,7 @@ void ext2_write_super (struct super_block * sb)
unlock_kernel
();
}
int
ext2_remount
(
struct
super_block
*
sb
,
int
*
flags
,
char
*
data
)
static
int
ext2_remount
(
struct
super_block
*
sb
,
int
*
flags
,
char
*
data
)
{
struct
ext2_sb_info
*
sbi
=
EXT2_SB
(
sb
);
struct
ext2_super_block
*
es
;
...
...
@@ -827,7 +829,7 @@ int ext2_remount (struct super_block * sb, int * flags, char * data)
return
0
;
}
int
ext2_statfs
(
struct
super_block
*
sb
,
struct
statfs
*
buf
)
static
int
ext2_statfs
(
struct
super_block
*
sb
,
struct
statfs
*
buf
)
{
struct
ext2_sb_info
*
sbi
=
EXT2_SB
(
sb
);
unsigned
long
overhead
;
...
...
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