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 @@ ...@@ -28,12 +28,12 @@
#define UFSD(x) #define UFSD(x)
#endif #endif
unsigned ufs_add_fragments (struct inode *, unsigned, unsigned, unsigned, int *); static unsigned ufs_add_fragments (struct inode *, unsigned, unsigned, unsigned, int *);
unsigned ufs_alloc_fragments (struct inode *, unsigned, unsigned, unsigned, int *); static unsigned ufs_alloc_fragments (struct inode *, unsigned, unsigned, unsigned, int *);
unsigned ufs_alloccg_block (struct inode *, struct ufs_cg_private_info *, unsigned, int *); static 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_bitmap_search (struct super_block *, struct ufs_cg_private_info *, unsigned, unsigned);
static unsigned char ufs_fragtable_8fpb[], ufs_fragtable_other[]; 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' * Free 'count' fragments from fragment number 'fragment'
...@@ -393,7 +393,8 @@ unsigned ufs_new_fragments (struct inode * inode, u32 * p, unsigned fragment, ...@@ -393,7 +393,8 @@ unsigned ufs_new_fragments (struct inode * inode, u32 * p, unsigned fragment,
return 0; return 0;
} }
unsigned ufs_add_fragments (struct inode * inode, unsigned fragment, static unsigned
ufs_add_fragments (struct inode * inode, unsigned fragment,
unsigned oldcount, unsigned newcount, int * err) unsigned oldcount, unsigned newcount, int * err)
{ {
struct super_block * sb; struct super_block * sb;
...@@ -477,7 +478,7 @@ unsigned ufs_add_fragments (struct inode * inode, unsigned fragment, ...@@ -477,7 +478,7 @@ unsigned ufs_add_fragments (struct inode * inode, unsigned fragment,
if (fs32_to_cpu(sb, ucg->cg_frsum[k])) \ if (fs32_to_cpu(sb, ucg->cg_frsum[k])) \
goto cg_found; 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) unsigned goal, unsigned count, int * err)
{ {
struct super_block * sb; struct super_block * sb;
...@@ -595,7 +596,7 @@ unsigned ufs_alloc_fragments (struct inode * inode, unsigned cgno, ...@@ -595,7 +596,7 @@ unsigned ufs_alloc_fragments (struct inode * inode, unsigned cgno,
return result; 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 ufs_cg_private_info * ucpi, unsigned goal, int * err)
{ {
struct super_block * sb; struct super_block * sb;
...@@ -653,7 +654,7 @@ unsigned ufs_alloccg_block (struct inode * inode, ...@@ -653,7 +654,7 @@ unsigned ufs_alloccg_block (struct inode * inode,
return result; 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_cg_private_info * ucpi, unsigned goal, unsigned count)
{ {
struct ufs_sb_private_info * uspi; struct ufs_sb_private_info * uspi;
...@@ -724,7 +725,7 @@ unsigned ufs_bitmap_search (struct super_block * sb, ...@@ -724,7 +725,7 @@ unsigned ufs_bitmap_search (struct super_block * sb,
return (unsigned)-1; 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_cg_private_info * ucpi, unsigned blkno, int cnt)
{ {
struct ufs_sb_private_info * uspi; struct ufs_sb_private_info * uspi;
......
...@@ -31,6 +31,9 @@ ...@@ -31,6 +31,9 @@
#define UFSD(x) #define UFSD(x)
#endif #endif
static int
ufs_check_dir_entry (const char *, struct inode *, struct ufs_dir_entry *,
struct buffer_head *, unsigned long);
/* /*
...@@ -292,8 +295,9 @@ struct ufs_dir_entry * ufs_find_entry (struct dentry *dentry, ...@@ -292,8 +295,9 @@ struct ufs_dir_entry * ufs_find_entry (struct dentry *dentry,
return NULL; return NULL;
} }
int ufs_check_dir_entry (const char * function, struct inode * dir, static int
struct ufs_dir_entry * de, struct buffer_head * bh, ufs_check_dir_entry (const char *function, struct inode *dir,
struct ufs_dir_entry *de, struct buffer_head *bh,
unsigned long offset) unsigned long offset)
{ {
struct super_block *sb = dir->i_sb; struct super_block *sb = dir->i_sb;
......
...@@ -388,7 +388,7 @@ static int ufs_parse_options (char * options, unsigned * mount_options) ...@@ -388,7 +388,7 @@ static int ufs_parse_options (char * options, unsigned * mount_options)
/* /*
* Read on-disk structures associated with cylinder groups * 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_info * sbi = UFS_SB(sb);
struct ufs_sb_private_info * uspi; struct ufs_sb_private_info * uspi;
struct ufs_super_block *usb; struct ufs_super_block *usb;
...@@ -488,7 +488,7 @@ int ufs_read_cylinder_structures (struct super_block * sb) { ...@@ -488,7 +488,7 @@ int ufs_read_cylinder_structures (struct super_block * sb) {
* Put on-disk structures associated with cylinder groups and * Put on-disk structures associated with cylinder groups and
* write them back to disk * 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_info * sbi = UFS_SB(sb);
struct ufs_sb_private_info * uspi; struct ufs_sb_private_info * uspi;
struct ufs_buffer_head * ubh; struct ufs_buffer_head * ubh;
...@@ -993,7 +993,7 @@ static int ufs_fill_super(struct super_block *sb, void *data, int silent) ...@@ -993,7 +993,7 @@ static int ufs_fill_super(struct super_block *sb, void *data, int silent)
return -ENOMEM; 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_sb_private_info * uspi;
struct ufs_super_block_first * usb1; struct ufs_super_block_first * usb1;
struct ufs_super_block_third * usb3; struct ufs_super_block_third * usb3;
...@@ -1020,7 +1020,7 @@ void ufs_write_super (struct super_block * sb) { ...@@ -1020,7 +1020,7 @@ void ufs_write_super (struct super_block * sb) {
unlock_kernel(); 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); struct ufs_sb_info * sbi = UFS_SB(sb);
...@@ -1037,7 +1037,7 @@ void ufs_put_super (struct super_block * 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_sb_private_info * uspi;
struct ufs_super_block_first * usb1; struct ufs_super_block_first * usb1;
...@@ -1112,7 +1112,7 @@ int ufs_remount (struct super_block * sb, int * mount_flags, char * data) ...@@ -1112,7 +1112,7 @@ int ufs_remount (struct super_block * sb, int * mount_flags, char * data)
return 0; 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_sb_private_info * uspi;
struct ufs_super_block_first * usb1; struct ufs_super_block_first * usb1;
......
...@@ -875,7 +875,6 @@ extern void ufs_put_cylinder (struct super_block *, unsigned); ...@@ -875,7 +875,6 @@ extern void ufs_put_cylinder (struct super_block *, unsigned);
/* dir.c */ /* dir.c */
extern struct inode_operations ufs_dir_inode_operations; 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 int ufs_add_link (struct dentry *, struct inode *);
extern ino_t ufs_inode_by_name(struct inode *, struct dentry *); extern ino_t ufs_inode_by_name(struct inode *, struct dentry *);
extern int ufs_make_empty(struct inode *, struct inode *); extern int ufs_make_empty(struct inode *, struct inode *);
...@@ -912,7 +911,6 @@ extern struct file_operations ufs_dir_operations; ...@@ -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_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_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_panic (struct super_block *, const char *, const char *, ...) __attribute__ ((format (printf, 3, 4)));
extern void ufs_write_super (struct super_block *);
/* symlink.c */ /* symlink.c */
extern struct inode_operations ufs_fast_symlink_inode_operations; 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