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: Fabian Frederick <fabf@skynet.be> Cc: Mark Fasheh <mfasheh@suse.com> Cc: Joel Becker <jlbec@evilplan.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
6718cb5e0e
commit
c253ed1f6f
|
@ -143,7 +143,7 @@ bail:
|
||||||
return status;
|
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)
|
struct ocfs2_info_request __user *req)
|
||||||
{
|
{
|
||||||
int status = -EFAULT;
|
int status = -EFAULT;
|
||||||
|
@ -167,7 +167,7 @@ bail:
|
||||||
return status;
|
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)
|
struct ocfs2_info_request __user *req)
|
||||||
{
|
{
|
||||||
int status = -EFAULT;
|
int status = -EFAULT;
|
||||||
|
@ -192,7 +192,7 @@ bail:
|
||||||
return status;
|
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)
|
struct ocfs2_info_request __user *req)
|
||||||
{
|
{
|
||||||
int status = -EFAULT;
|
int status = -EFAULT;
|
||||||
|
@ -217,7 +217,7 @@ bail:
|
||||||
return status;
|
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)
|
struct ocfs2_info_request __user *req)
|
||||||
{
|
{
|
||||||
int status = -EFAULT;
|
int status = -EFAULT;
|
||||||
|
@ -242,7 +242,7 @@ bail:
|
||||||
return status;
|
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)
|
struct ocfs2_info_request __user *req)
|
||||||
{
|
{
|
||||||
int status = -EFAULT;
|
int status = -EFAULT;
|
||||||
|
@ -267,7 +267,7 @@ bail:
|
||||||
return status;
|
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)
|
struct ocfs2_info_request __user *req)
|
||||||
{
|
{
|
||||||
int status = -EFAULT;
|
int status = -EFAULT;
|
||||||
|
@ -294,7 +294,7 @@ bail:
|
||||||
return status;
|
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)
|
struct ocfs2_info_request __user *req)
|
||||||
{
|
{
|
||||||
int status = -EFAULT;
|
int status = -EFAULT;
|
||||||
|
@ -319,9 +319,10 @@ bail:
|
||||||
return status;
|
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 inode *inode_alloc, u64 blkno,
|
||||||
struct ocfs2_info_freeinode *fi, u32 slot)
|
struct ocfs2_info_freeinode *fi,
|
||||||
|
u32 slot)
|
||||||
{
|
{
|
||||||
int status = 0, unlock = 0;
|
int status = 0, unlock = 0;
|
||||||
|
|
||||||
|
@ -366,7 +367,7 @@ bail:
|
||||||
return status;
|
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)
|
struct ocfs2_info_request __user *req)
|
||||||
{
|
{
|
||||||
u32 i;
|
u32 i;
|
||||||
|
@ -462,14 +463,14 @@ static void o2ffg_update_stats(struct ocfs2_info_freefrag_stats *stats,
|
||||||
stats->ffs_free_chunks_real++;
|
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)
|
unsigned int chunksize)
|
||||||
{
|
{
|
||||||
o2ffg_update_histogram(&(ffg->iff_ffs.ffs_fc_hist), chunksize);
|
o2ffg_update_histogram(&(ffg->iff_ffs.ffs_fc_hist), chunksize);
|
||||||
o2ffg_update_stats(&(ffg->iff_ffs), 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 inode *gb_inode,
|
||||||
struct ocfs2_dinode *gb_dinode,
|
struct ocfs2_dinode *gb_dinode,
|
||||||
struct ocfs2_chain_rec *rec,
|
struct ocfs2_chain_rec *rec,
|
||||||
|
@ -572,7 +573,7 @@ bail:
|
||||||
return status;
|
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 inode *gb_inode, u64 blkno,
|
||||||
struct ocfs2_info_freefrag *ffg)
|
struct ocfs2_info_freefrag *ffg)
|
||||||
{
|
{
|
||||||
|
@ -652,7 +653,7 @@ bail:
|
||||||
return status;
|
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)
|
struct ocfs2_info_request __user *req)
|
||||||
{
|
{
|
||||||
u64 blkno = -1;
|
u64 blkno = -1;
|
||||||
|
@ -723,7 +724,7 @@ out_err:
|
||||||
return status;
|
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)
|
struct ocfs2_info_request __user *req)
|
||||||
{
|
{
|
||||||
int status = -EFAULT;
|
int status = -EFAULT;
|
||||||
|
@ -752,7 +753,7 @@ bail:
|
||||||
* - distinguish different requests.
|
* - distinguish different requests.
|
||||||
* - validate size of 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)
|
struct ocfs2_info_request __user *req)
|
||||||
{
|
{
|
||||||
int status = -EFAULT;
|
int status = -EFAULT;
|
||||||
|
@ -811,7 +812,7 @@ bail:
|
||||||
return status;
|
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)
|
u64 *req_addr, int compat_flag)
|
||||||
{
|
{
|
||||||
int status = -EFAULT;
|
int status = -EFAULT;
|
||||||
|
@ -849,7 +850,7 @@ bail:
|
||||||
* a better backward&forward compatibility, since a small piece of
|
* a better backward&forward compatibility, since a small piece of
|
||||||
* request will be less likely to be broken if disk layout get changed.
|
* 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 compat_flag)
|
||||||
{
|
{
|
||||||
int i, status = 0;
|
int i, status = 0;
|
||||||
|
|
Loading…
Reference in New Issue