Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
ioctl.c File Reference
#include <linux/fs.h>
#include <linux/mount.h>
#include <linux/compat.h>
#include <cluster/masklog.h>
#include "ocfs2.h"
#include "alloc.h"
#include "dlmglue.h"
#include "file.h"
#include "inode.h"
#include "journal.h"
#include "ocfs2_fs.h"
#include "ioctl.h"
#include "resize.h"
#include "refcounttree.h"
#include "sysfile.h"
#include "dir.h"
#include "buffer_head_io.h"
#include "suballoc.h"
#include "move_extents.h"

Go to the source code of this file.

Macros

#define o2info_from_user(a, b)   copy_from_user(&(a), (b), sizeof(a))
 
#define o2info_to_user(a, b)   copy_to_user((typeof(a) __user *)b, &(a), sizeof(a))
 

Functions

int ocfs2_info_handle_blocksize (struct inode *inode, struct ocfs2_info_request __user *req)
 
int ocfs2_info_handle_clustersize (struct inode *inode, struct ocfs2_info_request __user *req)
 
int ocfs2_info_handle_maxslots (struct inode *inode, struct ocfs2_info_request __user *req)
 
int ocfs2_info_handle_label (struct inode *inode, struct ocfs2_info_request __user *req)
 
int ocfs2_info_handle_uuid (struct inode *inode, struct ocfs2_info_request __user *req)
 
int ocfs2_info_handle_fs_features (struct inode *inode, struct ocfs2_info_request __user *req)
 
int ocfs2_info_handle_journal_size (struct inode *inode, struct ocfs2_info_request __user *req)
 
int ocfs2_info_scan_inode_alloc (struct ocfs2_super *osb, struct inode *inode_alloc, u64 blkno, struct ocfs2_info_freeinode *fi, u32 slot)
 
int ocfs2_info_handle_freeinode (struct inode *inode, struct ocfs2_info_request __user *req)
 
void ocfs2_info_update_ffg (struct ocfs2_info_freefrag *ffg, unsigned int chunksize)
 
int ocfs2_info_freefrag_scan_chain (struct ocfs2_super *osb, struct inode *gb_inode, struct ocfs2_dinode *gb_dinode, struct ocfs2_chain_rec *rec, struct ocfs2_info_freefrag *ffg, u32 chunks_in_group)
 
int ocfs2_info_freefrag_scan_bitmap (struct ocfs2_super *osb, struct inode *gb_inode, u64 blkno, struct ocfs2_info_freefrag *ffg)
 
int ocfs2_info_handle_freefrag (struct inode *inode, struct ocfs2_info_request __user *req)
 
int ocfs2_info_handle_unknown (struct inode *inode, struct ocfs2_info_request __user *req)
 
int ocfs2_info_handle_request (struct inode *inode, struct ocfs2_info_request __user *req)
 
int ocfs2_get_request_ptr (struct ocfs2_info *info, int idx, u64 *req_addr, int compat_flag)
 
int ocfs2_info_handle (struct inode *inode, struct ocfs2_info *info, int compat_flag)
 
long ocfs2_ioctl (struct file *filp, unsigned int cmd, unsigned long arg)
 

Macro Definition Documentation

#define o2info_from_user (   a,
  b 
)    copy_from_user(&(a), (b), sizeof(a))

Definition at line 31 of file ioctl.c.

#define o2info_to_user (   a,
  b 
)    copy_to_user((typeof(a) __user *)b, &(a), sizeof(a))

Definition at line 33 of file ioctl.c.

Function Documentation

int ocfs2_get_request_ptr ( struct ocfs2_info info,
int  idx,
u64 req_addr,
int  compat_flag 
)

Definition at line 810 of file ioctl.c.

int ocfs2_info_freefrag_scan_bitmap ( struct ocfs2_super osb,
struct inode gb_inode,
u64  blkno,
struct ocfs2_info_freefrag ffg 
)

Definition at line 573 of file ioctl.c.

int ocfs2_info_freefrag_scan_chain ( struct ocfs2_super osb,
struct inode gb_inode,
struct ocfs2_dinode gb_dinode,
struct ocfs2_chain_rec rec,
struct ocfs2_info_freefrag ffg,
u32  chunks_in_group 
)

Definition at line 470 of file ioctl.c.

int ocfs2_info_handle ( struct inode inode,
struct ocfs2_info info,
int  compat_flag 
)

Definition at line 848 of file ioctl.c.

int ocfs2_info_handle_blocksize ( struct inode inode,
struct ocfs2_info_request __user req 
)

Definition at line 145 of file ioctl.c.

int ocfs2_info_handle_clustersize ( struct inode inode,
struct ocfs2_info_request __user req 
)

Definition at line 169 of file ioctl.c.

int ocfs2_info_handle_freefrag ( struct inode inode,
struct ocfs2_info_request __user req 
)

Definition at line 653 of file ioctl.c.

int ocfs2_info_handle_freeinode ( struct inode inode,
struct ocfs2_info_request __user req 
)

Definition at line 368 of file ioctl.c.

int ocfs2_info_handle_fs_features ( struct inode inode,
struct ocfs2_info_request __user req 
)

Definition at line 269 of file ioctl.c.

int ocfs2_info_handle_journal_size ( struct inode inode,
struct ocfs2_info_request __user req 
)

Definition at line 296 of file ioctl.c.

int ocfs2_info_handle_label ( struct inode inode,
struct ocfs2_info_request __user req 
)

Definition at line 219 of file ioctl.c.

int ocfs2_info_handle_maxslots ( struct inode inode,
struct ocfs2_info_request __user req 
)

Definition at line 194 of file ioctl.c.

int ocfs2_info_handle_request ( struct inode inode,
struct ocfs2_info_request __user req 
)

Definition at line 751 of file ioctl.c.

int ocfs2_info_handle_unknown ( struct inode inode,
struct ocfs2_info_request __user req 
)

Definition at line 722 of file ioctl.c.

int ocfs2_info_handle_uuid ( struct inode inode,
struct ocfs2_info_request __user req 
)

Definition at line 244 of file ioctl.c.

int ocfs2_info_scan_inode_alloc ( struct ocfs2_super osb,
struct inode inode_alloc,
u64  blkno,
struct ocfs2_info_freeinode fi,
u32  slot 
)

Definition at line 321 of file ioctl.c.

void ocfs2_info_update_ffg ( struct ocfs2_info_freefrag ffg,
unsigned int  chunksize 
)

Definition at line 463 of file ioctl.c.

long ocfs2_ioctl ( struct file filp,
unsigned int  cmd,
unsigned long  arg 
)

Definition at line 882 of file ioctl.c.