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
02f42903
Commit
02f42903
authored
Sep 04, 2004
by
Andries E. Brouwer
Committed by
Linus Torvalds
Sep 04, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] fat: add static
In the long sequence of static additions, here some fat ones.
parent
b4c22221
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
12 deletions
+11
-12
fs/fat/cache.c
fs/fat/cache.c
+2
-1
fs/fat/inode.c
fs/fat/inode.c
+9
-9
include/linux/msdos_fs.h
include/linux/msdos_fs.h
+0
-2
No files found.
fs/fat/cache.c
View file @
02f42903
...
@@ -146,7 +146,8 @@ void fat_cache_init(struct super_block *sb)
...
@@ -146,7 +146,8 @@ void fat_cache_init(struct super_block *sb)
sbi
->
cache
=
sbi
->
cache_array
;
sbi
->
cache
=
sbi
->
cache_array
;
}
}
void
fat_cache_lookup
(
struct
inode
*
inode
,
int
cluster
,
int
*
f_clu
,
int
*
d_clu
)
static
void
fat_cache_lookup
(
struct
inode
*
inode
,
int
cluster
,
int
*
f_clu
,
int
*
d_clu
)
{
{
struct
msdos_sb_info
*
sbi
=
MSDOS_SB
(
inode
->
i_sb
);
struct
msdos_sb_info
*
sbi
=
MSDOS_SB
(
inode
->
i_sb
);
struct
fat_cache
*
walk
;
struct
fat_cache
*
walk
;
...
...
fs/fat/inode.c
View file @
02f42903
...
@@ -59,7 +59,7 @@ static char fat_default_iocharset[] = CONFIG_FAT_DEFAULT_IOCHARSET;
...
@@ -59,7 +59,7 @@ static char fat_default_iocharset[] = CONFIG_FAT_DEFAULT_IOCHARSET;
#define FAT_HASH_SIZE (1UL << FAT_HASH_BITS)
#define FAT_HASH_SIZE (1UL << FAT_HASH_BITS)
#define FAT_HASH_MASK (FAT_HASH_SIZE-1)
#define FAT_HASH_MASK (FAT_HASH_SIZE-1)
static
struct
list_head
fat_inode_hashtable
[
FAT_HASH_SIZE
];
static
struct
list_head
fat_inode_hashtable
[
FAT_HASH_SIZE
];
spinlock_t
fat_inode_lock
=
SPIN_LOCK_UNLOCKED
;
s
tatic
s
pinlock_t
fat_inode_lock
=
SPIN_LOCK_UNLOCKED
;
void
fat_hash_init
(
void
)
void
fat_hash_init
(
void
)
{
{
...
@@ -579,12 +579,11 @@ static int fat_read_root(struct inode *inode)
...
@@ -579,12 +579,11 @@ static int fat_read_root(struct inode *inode)
* of i_logstart is used to store the directory entry offset.
* of i_logstart is used to store the directory entry offset.
*/
*/
st
ruct
dentry
*
fat_decode_fh
(
struct
super_block
*
sb
,
__u32
*
fh
,
st
atic
struct
dentry
*
int
len
,
int
fhtype
,
fat_decode_fh
(
struct
super_block
*
sb
,
__u32
*
fh
,
int
len
,
int
fhtype
,
int
(
*
acceptable
)(
void
*
context
,
struct
dentry
*
de
),
int
(
*
acceptable
)(
void
*
context
,
struct
dentry
*
de
),
void
*
context
)
void
*
context
)
{
{
if
(
fhtype
!=
3
)
if
(
fhtype
!=
3
)
return
ERR_PTR
(
-
ESTALE
);
return
ERR_PTR
(
-
ESTALE
);
if
(
len
<
5
)
if
(
len
<
5
)
...
@@ -593,7 +592,7 @@ struct dentry *fat_decode_fh(struct super_block *sb, __u32 *fh,
...
@@ -593,7 +592,7 @@ struct dentry *fat_decode_fh(struct super_block *sb, __u32 *fh,
return
sb
->
s_export_op
->
find_exported_dentry
(
sb
,
fh
,
NULL
,
acceptable
,
context
);
return
sb
->
s_export_op
->
find_exported_dentry
(
sb
,
fh
,
NULL
,
acceptable
,
context
);
}
}
struct
dentry
*
fat_get_dentry
(
struct
super_block
*
sb
,
void
*
inump
)
st
atic
st
ruct
dentry
*
fat_get_dentry
(
struct
super_block
*
sb
,
void
*
inump
)
{
{
struct
inode
*
inode
=
NULL
;
struct
inode
*
inode
=
NULL
;
struct
dentry
*
result
;
struct
dentry
*
result
;
...
@@ -653,7 +652,8 @@ struct dentry *fat_get_dentry(struct super_block *sb, void *inump)
...
@@ -653,7 +652,8 @@ struct dentry *fat_get_dentry(struct super_block *sb, void *inump)
return
result
;
return
result
;
}
}
int
fat_encode_fh
(
struct
dentry
*
de
,
__u32
*
fh
,
int
*
lenp
,
int
connectable
)
static
int
fat_encode_fh
(
struct
dentry
*
de
,
__u32
*
fh
,
int
*
lenp
,
int
connectable
)
{
{
int
len
=
*
lenp
;
int
len
=
*
lenp
;
struct
inode
*
inode
=
de
->
d_inode
;
struct
inode
*
inode
=
de
->
d_inode
;
...
@@ -676,7 +676,7 @@ int fat_encode_fh(struct dentry *de, __u32 *fh, int *lenp, int connectable)
...
@@ -676,7 +676,7 @@ int fat_encode_fh(struct dentry *de, __u32 *fh, int *lenp, int connectable)
return
3
;
return
3
;
}
}
struct
dentry
*
fat_get_parent
(
struct
dentry
*
child
)
st
atic
st
ruct
dentry
*
fat_get_parent
(
struct
dentry
*
child
)
{
{
struct
buffer_head
*
bh
=
NULL
;
struct
buffer_head
*
bh
=
NULL
;
struct
msdos_dir_entry
*
de
=
NULL
;
struct
msdos_dir_entry
*
de
=
NULL
;
...
...
include/linux/msdos_fs.h
View file @
02f42903
...
@@ -233,8 +233,6 @@ extern int fat_access(struct super_block *sb, int nr, int new_value);
...
@@ -233,8 +233,6 @@ extern int fat_access(struct super_block *sb, int nr, int new_value);
extern
int
__fat_access
(
struct
super_block
*
sb
,
int
nr
,
int
new_value
);
extern
int
__fat_access
(
struct
super_block
*
sb
,
int
nr
,
int
new_value
);
extern
int
fat_bmap
(
struct
inode
*
inode
,
sector_t
sector
,
sector_t
*
phys
);
extern
int
fat_bmap
(
struct
inode
*
inode
,
sector_t
sector
,
sector_t
*
phys
);
extern
void
fat_cache_init
(
struct
super_block
*
sb
);
extern
void
fat_cache_init
(
struct
super_block
*
sb
);
extern
void
fat_cache_lookup
(
struct
inode
*
inode
,
int
cluster
,
int
*
f_clu
,
int
*
d_clu
);
extern
void
fat_cache_add
(
struct
inode
*
inode
,
int
f_clu
,
int
d_clu
);
extern
void
fat_cache_add
(
struct
inode
*
inode
,
int
f_clu
,
int
d_clu
);
extern
void
fat_cache_inval_inode
(
struct
inode
*
inode
);
extern
void
fat_cache_inval_inode
(
struct
inode
*
inode
);
extern
int
fat_get_cluster
(
struct
inode
*
inode
,
int
cluster
,
extern
int
fat_get_cluster
(
struct
inode
*
inode
,
int
cluster
,
...
...
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