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

[PATCH] adfs: add static

Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 368a4b59
......@@ -64,12 +64,7 @@ struct adfs_discmap {
unsigned int dm_endbit;
};
/* dir stuff */
/* Inode stuff */
int adfs_get_block(struct inode *inode, sector_t block,
struct buffer_head *bh, int create);
struct inode *adfs_iget(struct super_block *sb, struct object_info *obj);
void adfs_write_inode(struct inode *inode,int unused);
int adfs_notify_change(struct dentry *dentry, struct iattr *attr);
......@@ -83,9 +78,6 @@ void __adfs_error(struct super_block *sb, const char *function,
const char *fmt, ...);
#define adfs_error(sb, fmt...) __adfs_error(sb, __FUNCTION__, fmt)
/* namei.c */
extern struct dentry *adfs_lookup(struct inode *dir, struct dentry *dentry, struct nameidata *);
/* super.c */
/*
......
......@@ -268,7 +268,8 @@ struct dentry_operations adfs_dentry_operations = {
.d_compare = adfs_compare,
};
struct dentry *adfs_lookup(struct inode *dir, struct dentry *dentry, struct nameidata *nd)
static struct dentry *
adfs_lookup(struct inode *dir, struct dentry *dentry, struct nameidata *nd)
{
struct inode *inode = NULL;
struct object_info obj;
......
......@@ -165,7 +165,7 @@ adfs_dir_checkbyte(const struct adfs_dir *dir)
/*
* Read and check that a directory is valid
*/
int
static int
adfs_dir_read(struct super_block *sb, unsigned long object_id,
unsigned int size, struct adfs_dir *dir)
{
......@@ -260,7 +260,7 @@ adfs_obj2dir(struct adfs_direntry *de, struct object_info *obj)
* get a directory entry. Note that the caller is responsible
* for holding the relevant locks.
*/
int
static int
__adfs_dir_get(struct adfs_dir *dir, int pos, struct object_info *obj)
{
struct super_block *sb = dir->sb;
......@@ -290,7 +290,7 @@ __adfs_dir_get(struct adfs_dir *dir, int pos, struct object_info *obj)
return 0;
}
int
static int
__adfs_dir_put(struct adfs_dir *dir, int pos, struct object_info *obj)
{
struct super_block *sb = dir->sb;
......
......@@ -24,8 +24,9 @@
* Lookup/Create a block at offset 'block' into 'inode'. We currently do
* not support creation of new blocks, so we return -EIO for this case.
*/
int
adfs_get_block(struct inode *inode, sector_t block, struct buffer_head *bh, int create)
static int
adfs_get_block(struct inode *inode, sector_t block, struct buffer_head *bh,
int create)
{
if (block < 0)
goto abort_negative;
......
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