Commit 1be793bd authored by Andries E. Brouwer's avatar Andries E. Brouwer Committed by Linus Torvalds

[PATCH] add static in ufs

Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 68a12d61
......@@ -28,12 +28,12 @@
#define UFSD(x)
#endif
unsigned ufs_add_fragments (struct inode *, unsigned, unsigned, unsigned, int *);
unsigned ufs_alloc_fragments (struct inode *, unsigned, unsigned, unsigned, int *);
unsigned ufs_alloccg_block (struct inode *, struct ufs_cg_private_info *, unsigned, int *);
unsigned ufs_bitmap_search (struct super_block *, struct ufs_cg_private_info *, unsigned, unsigned);
static unsigned ufs_add_fragments (struct inode *, unsigned, unsigned, unsigned, int *);
static unsigned ufs_alloc_fragments (struct inode *, unsigned, unsigned, unsigned, int *);
static unsigned ufs_alloccg_block (struct inode *, struct ufs_cg_private_info *, unsigned, int *);
static unsigned ufs_bitmap_search (struct super_block *, struct ufs_cg_private_info *, unsigned, unsigned);
static unsigned char ufs_fragtable_8fpb[], ufs_fragtable_other[];
void ufs_clusteracct(struct super_block *, struct ufs_cg_private_info *, unsigned, int);
static void ufs_clusteracct(struct super_block *, struct ufs_cg_private_info *, unsigned, int);
/*
* Free 'count' fragments from fragment number 'fragment'
......@@ -393,8 +393,9 @@ unsigned ufs_new_fragments (struct inode * inode, u32 * p, unsigned fragment,
return 0;
}
unsigned ufs_add_fragments (struct inode * inode, unsigned fragment,
unsigned oldcount, unsigned newcount, int * err)
static unsigned
ufs_add_fragments (struct inode * inode, unsigned fragment,
unsigned oldcount, unsigned newcount, int * err)
{
struct super_block * sb;
struct ufs_sb_private_info * uspi;
......@@ -477,7 +478,7 @@ unsigned ufs_add_fragments (struct inode * inode, unsigned fragment,
if (fs32_to_cpu(sb, ucg->cg_frsum[k])) \
goto cg_found;
unsigned ufs_alloc_fragments (struct inode * inode, unsigned cgno,
static unsigned ufs_alloc_fragments (struct inode * inode, unsigned cgno,
unsigned goal, unsigned count, int * err)
{
struct super_block * sb;
......@@ -595,7 +596,7 @@ unsigned ufs_alloc_fragments (struct inode * inode, unsigned cgno,
return result;
}
unsigned ufs_alloccg_block (struct inode * inode,
static unsigned ufs_alloccg_block (struct inode * inode,
struct ufs_cg_private_info * ucpi, unsigned goal, int * err)
{
struct super_block * sb;
......@@ -653,7 +654,7 @@ unsigned ufs_alloccg_block (struct inode * inode,
return result;
}
unsigned ufs_bitmap_search (struct super_block * sb,
static unsigned ufs_bitmap_search (struct super_block * sb,
struct ufs_cg_private_info * ucpi, unsigned goal, unsigned count)
{
struct ufs_sb_private_info * uspi;
......@@ -724,7 +725,7 @@ unsigned ufs_bitmap_search (struct super_block * sb,
return (unsigned)-1;
}
void ufs_clusteracct(struct super_block * sb,
static void ufs_clusteracct(struct super_block * sb,
struct ufs_cg_private_info * ucpi, unsigned blkno, int cnt)
{
struct ufs_sb_private_info * uspi;
......
......@@ -31,6 +31,9 @@
#define UFSD(x)
#endif
static int
ufs_check_dir_entry (const char *, struct inode *, struct ufs_dir_entry *,
struct buffer_head *, unsigned long);
/*
......@@ -292,9 +295,10 @@ struct ufs_dir_entry * ufs_find_entry (struct dentry *dentry,
return NULL;
}
int ufs_check_dir_entry (const char * function, struct inode * dir,
struct ufs_dir_entry * de, struct buffer_head * bh,
unsigned long offset)
static int
ufs_check_dir_entry (const char *function, struct inode *dir,
struct ufs_dir_entry *de, struct buffer_head *bh,
unsigned long offset)
{
struct super_block *sb = dir->i_sb;
const char *error_msg = NULL;
......
......@@ -388,7 +388,7 @@ static int ufs_parse_options (char * options, unsigned * mount_options)
/*
* Read on-disk structures associated with cylinder groups
*/
int ufs_read_cylinder_structures (struct super_block * sb) {
static int ufs_read_cylinder_structures (struct super_block *sb) {
struct ufs_sb_info * sbi = UFS_SB(sb);
struct ufs_sb_private_info * uspi;
struct ufs_super_block *usb;
......@@ -488,7 +488,7 @@ int ufs_read_cylinder_structures (struct super_block * sb) {
* Put on-disk structures associated with cylinder groups and
* write them back to disk
*/
void ufs_put_cylinder_structures (struct super_block * sb) {
static void ufs_put_cylinder_structures (struct super_block *sb) {
struct ufs_sb_info * sbi = UFS_SB(sb);
struct ufs_sb_private_info * uspi;
struct ufs_buffer_head * ubh;
......@@ -993,7 +993,7 @@ static int ufs_fill_super(struct super_block *sb, void *data, int silent)
return -ENOMEM;
}
void ufs_write_super (struct super_block * sb) {
static void ufs_write_super (struct super_block *sb) {
struct ufs_sb_private_info * uspi;
struct ufs_super_block_first * usb1;
struct ufs_super_block_third * usb3;
......@@ -1020,7 +1020,7 @@ void ufs_write_super (struct super_block * sb) {
unlock_kernel();
}
void ufs_put_super (struct super_block * sb)
static void ufs_put_super (struct super_block *sb)
{
struct ufs_sb_info * sbi = UFS_SB(sb);
......@@ -1037,7 +1037,7 @@ void ufs_put_super (struct super_block * sb)
}
int ufs_remount (struct super_block * sb, int * mount_flags, char * data)
static int ufs_remount (struct super_block *sb, int *mount_flags, char *data)
{
struct ufs_sb_private_info * uspi;
struct ufs_super_block_first * usb1;
......@@ -1112,7 +1112,7 @@ int ufs_remount (struct super_block * sb, int * mount_flags, char * data)
return 0;
}
int ufs_statfs (struct super_block * sb, struct kstatfs * buf)
static int ufs_statfs (struct super_block *sb, struct kstatfs *buf)
{
struct ufs_sb_private_info * uspi;
struct ufs_super_block_first * usb1;
......
......@@ -875,7 +875,6 @@ extern void ufs_put_cylinder (struct super_block *, unsigned);
/* dir.c */
extern struct inode_operations ufs_dir_inode_operations;
extern int ufs_check_dir_entry (const char *, struct inode *, struct ufs_dir_entry *, struct buffer_head *, unsigned long);
extern int ufs_add_link (struct dentry *, struct inode *);
extern ino_t ufs_inode_by_name(struct inode *, struct dentry *);
extern int ufs_make_empty(struct inode *, struct inode *);
......@@ -912,7 +911,6 @@ extern struct file_operations ufs_dir_operations;
extern void ufs_warning (struct super_block *, const char *, const char *, ...) __attribute__ ((format (printf, 3, 4)));
extern void ufs_error (struct super_block *, const char *, const char *, ...) __attribute__ ((format (printf, 3, 4)));
extern void ufs_panic (struct super_block *, const char *, const char *, ...) __attribute__ ((format (printf, 3, 4)));
extern void ufs_write_super (struct super_block *);
/* symlink.c */
extern struct inode_operations ufs_fast_symlink_inode_operations;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment