Commit c253ed1f authored by Fabian Frederick's avatar Fabian Frederick Committed by Linus Torvalds

fs/ocfs2/ioctl.c: add static to local functions

ocfs_info_foo() and ocfs2_get_request_ptr functions are only used in ioctl.c
Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Cc: Mark Fasheh <mfasheh@suse.com>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 6718cb5e
......@@ -143,7 +143,7 @@ static int ocfs2_set_inode_attr(struct inode *inode, unsigned flags,
return status;
}
int ocfs2_info_handle_blocksize(struct inode *inode,
static int ocfs2_info_handle_blocksize(struct inode *inode,
struct ocfs2_info_request __user *req)
{
int status = -EFAULT;
......@@ -167,7 +167,7 @@ int ocfs2_info_handle_blocksize(struct inode *inode,
return status;
}
int ocfs2_info_handle_clustersize(struct inode *inode,
static int ocfs2_info_handle_clustersize(struct inode *inode,
struct ocfs2_info_request __user *req)
{
int status = -EFAULT;
......@@ -192,7 +192,7 @@ int ocfs2_info_handle_clustersize(struct inode *inode,
return status;
}
int ocfs2_info_handle_maxslots(struct inode *inode,
static int ocfs2_info_handle_maxslots(struct inode *inode,
struct ocfs2_info_request __user *req)
{
int status = -EFAULT;
......@@ -217,7 +217,7 @@ int ocfs2_info_handle_maxslots(struct inode *inode,
return status;
}
int ocfs2_info_handle_label(struct inode *inode,
static int ocfs2_info_handle_label(struct inode *inode,
struct ocfs2_info_request __user *req)
{
int status = -EFAULT;
......@@ -242,7 +242,7 @@ int ocfs2_info_handle_label(struct inode *inode,
return status;
}
int ocfs2_info_handle_uuid(struct inode *inode,
static int ocfs2_info_handle_uuid(struct inode *inode,
struct ocfs2_info_request __user *req)
{
int status = -EFAULT;
......@@ -267,7 +267,7 @@ int ocfs2_info_handle_uuid(struct inode *inode,
return status;
}
int ocfs2_info_handle_fs_features(struct inode *inode,
static int ocfs2_info_handle_fs_features(struct inode *inode,
struct ocfs2_info_request __user *req)
{
int status = -EFAULT;
......@@ -294,7 +294,7 @@ int ocfs2_info_handle_fs_features(struct inode *inode,
return status;
}
int ocfs2_info_handle_journal_size(struct inode *inode,
static int ocfs2_info_handle_journal_size(struct inode *inode,
struct ocfs2_info_request __user *req)
{
int status = -EFAULT;
......@@ -319,9 +319,10 @@ int ocfs2_info_handle_journal_size(struct inode *inode,
return status;
}
int ocfs2_info_scan_inode_alloc(struct ocfs2_super *osb,
static int ocfs2_info_scan_inode_alloc(struct ocfs2_super *osb,
struct inode *inode_alloc, u64 blkno,
struct ocfs2_info_freeinode *fi, u32 slot)
struct ocfs2_info_freeinode *fi,
u32 slot)
{
int status = 0, unlock = 0;
......@@ -366,7 +367,7 @@ int ocfs2_info_scan_inode_alloc(struct ocfs2_super *osb,
return status;
}
int ocfs2_info_handle_freeinode(struct inode *inode,
static int ocfs2_info_handle_freeinode(struct inode *inode,
struct ocfs2_info_request __user *req)
{
u32 i;
......@@ -462,14 +463,14 @@ static void o2ffg_update_stats(struct ocfs2_info_freefrag_stats *stats,
stats->ffs_free_chunks_real++;
}
void ocfs2_info_update_ffg(struct ocfs2_info_freefrag *ffg,
static void ocfs2_info_update_ffg(struct ocfs2_info_freefrag *ffg,
unsigned int chunksize)
{
o2ffg_update_histogram(&(ffg->iff_ffs.ffs_fc_hist), chunksize);
o2ffg_update_stats(&(ffg->iff_ffs), chunksize);
}
int ocfs2_info_freefrag_scan_chain(struct ocfs2_super *osb,
static int ocfs2_info_freefrag_scan_chain(struct ocfs2_super *osb,
struct inode *gb_inode,
struct ocfs2_dinode *gb_dinode,
struct ocfs2_chain_rec *rec,
......@@ -572,7 +573,7 @@ int ocfs2_info_freefrag_scan_chain(struct ocfs2_super *osb,
return status;
}
int ocfs2_info_freefrag_scan_bitmap(struct ocfs2_super *osb,
static int ocfs2_info_freefrag_scan_bitmap(struct ocfs2_super *osb,
struct inode *gb_inode, u64 blkno,
struct ocfs2_info_freefrag *ffg)
{
......@@ -652,7 +653,7 @@ int ocfs2_info_freefrag_scan_bitmap(struct ocfs2_super *osb,
return status;
}
int ocfs2_info_handle_freefrag(struct inode *inode,
static int ocfs2_info_handle_freefrag(struct inode *inode,
struct ocfs2_info_request __user *req)
{
u64 blkno = -1;
......@@ -723,7 +724,7 @@ int ocfs2_info_handle_freefrag(struct inode *inode,
return status;
}
int ocfs2_info_handle_unknown(struct inode *inode,
static int ocfs2_info_handle_unknown(struct inode *inode,
struct ocfs2_info_request __user *req)
{
int status = -EFAULT;
......@@ -752,7 +753,7 @@ int ocfs2_info_handle_unknown(struct inode *inode,
* - distinguish different requests.
* - validate size of different requests.
*/
int ocfs2_info_handle_request(struct inode *inode,
static int ocfs2_info_handle_request(struct inode *inode,
struct ocfs2_info_request __user *req)
{
int status = -EFAULT;
......@@ -811,7 +812,7 @@ int ocfs2_info_handle_request(struct inode *inode,
return status;
}
int ocfs2_get_request_ptr(struct ocfs2_info *info, int idx,
static int ocfs2_get_request_ptr(struct ocfs2_info *info, int idx,
u64 *req_addr, int compat_flag)
{
int status = -EFAULT;
......@@ -849,7 +850,7 @@ int ocfs2_get_request_ptr(struct ocfs2_info *info, int idx,
* a better backward&forward compatibility, since a small piece of
* request will be less likely to be broken if disk layout get changed.
*/
int ocfs2_info_handle(struct inode *inode, struct ocfs2_info *info,
static int ocfs2_info_handle(struct inode *inode, struct ocfs2_info *info,
int compat_flag)
{
int i, status = 0;
......
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