Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
dquot.c File Reference
#include <linux/errno.h>
#include <linux/kernel.h>
#include <linux/fs.h>
#include <linux/mount.h>
#include <linux/mm.h>
#include <linux/time.h>
#include <linux/types.h>
#include <linux/string.h>
#include <linux/fcntl.h>
#include <linux/stat.h>
#include <linux/tty.h>
#include <linux/file.h>
#include <linux/slab.h>
#include <linux/sysctl.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/proc_fs.h>
#include <linux/security.h>
#include <linux/sched.h>
#include <linux/kmod.h>
#include <linux/namei.h>
#include <linux/capability.h>
#include <linux/quotaops.h>
#include "../internal.h"
#include <linux/uaccess.h>

Go to the source code of this file.

Data Structures

struct  dquot_warn
 

Macros

#define VFS_FS_DQ_MASK
 

Functions

__cacheline_aligned_in_smp DEFINE_SPINLOCK (dq_data_lock)
 
 EXPORT_SYMBOL (dq_data_lock)
 
void __quota_error (struct super_block *sb, const char *func, const char *fmt,...)
 
 EXPORT_SYMBOL (__quota_error)
 
int register_quota_format (struct quota_format_type *fmt)
 
 EXPORT_SYMBOL (register_quota_format)
 
void unregister_quota_format (struct quota_format_type *fmt)
 
 EXPORT_SYMBOL (unregister_quota_format)
 
 EXPORT_SYMBOL (dqstats)
 
int dquot_mark_dquot_dirty (struct dquot *dquot)
 
 EXPORT_SYMBOL (dquot_mark_dquot_dirty)
 
void mark_info_dirty (struct super_block *sb, int type)
 
 EXPORT_SYMBOL (mark_info_dirty)
 
int dquot_acquire (struct dquot *dquot)
 
 EXPORT_SYMBOL (dquot_acquire)
 
int dquot_commit (struct dquot *dquot)
 
 EXPORT_SYMBOL (dquot_commit)
 
int dquot_release (struct dquot *dquot)
 
 EXPORT_SYMBOL (dquot_release)
 
void dquot_destroy (struct dquot *dquot)
 
 EXPORT_SYMBOL (dquot_destroy)
 
int dquot_scan_active (struct super_block *sb, int(*fn)(struct dquot *dquot, unsigned long priv), unsigned long priv)
 
 EXPORT_SYMBOL (dquot_scan_active)
 
int dquot_writeback_dquots (struct super_block *sb, int type)
 
 EXPORT_SYMBOL (dquot_writeback_dquots)
 
int dquot_quota_sync (struct super_block *sb, int type)
 
 EXPORT_SYMBOL (dquot_quota_sync)
 
void dqput (struct dquot *dquot)
 
 EXPORT_SYMBOL (dqput)
 
struct dquotdquot_alloc (struct super_block *sb, int type)
 
 EXPORT_SYMBOL (dquot_alloc)
 
struct dquotdqget (struct super_block *sb, struct kqid qid)
 
 EXPORT_SYMBOL (dqget)
 
void dquot_initialize (struct inode *inode)
 
 EXPORT_SYMBOL (dquot_initialize)
 
void dquot_drop (struct inode *inode)
 
 EXPORT_SYMBOL (dquot_drop)
 
void inode_add_rsv_space (struct inode *inode, qsize_t number)
 
 EXPORT_SYMBOL (inode_add_rsv_space)
 
void inode_claim_rsv_space (struct inode *inode, qsize_t number)
 
 EXPORT_SYMBOL (inode_claim_rsv_space)
 
void inode_sub_rsv_space (struct inode *inode, qsize_t number)
 
 EXPORT_SYMBOL (inode_sub_rsv_space)
 
int __dquot_alloc_space (struct inode *inode, qsize_t number, int flags)
 
 EXPORT_SYMBOL (__dquot_alloc_space)
 
int dquot_alloc_inode (const struct inode *inode)
 
 EXPORT_SYMBOL (dquot_alloc_inode)
 
int dquot_claim_space_nodirty (struct inode *inode, qsize_t number)
 
 EXPORT_SYMBOL (dquot_claim_space_nodirty)
 
void __dquot_free_space (struct inode *inode, qsize_t number, int flags)
 
 EXPORT_SYMBOL (__dquot_free_space)
 
void dquot_free_inode (const struct inode *inode)
 
 EXPORT_SYMBOL (dquot_free_inode)
 
int __dquot_transfer (struct inode *inode, struct dquot **transfer_to)
 
 EXPORT_SYMBOL (__dquot_transfer)
 
int dquot_transfer (struct inode *inode, struct iattr *iattr)
 
 EXPORT_SYMBOL (dquot_transfer)
 
int dquot_commit_info (struct super_block *sb, int type)
 
 EXPORT_SYMBOL (dquot_commit_info)
 
 EXPORT_SYMBOL (dquot_operations)
 
int dquot_file_open (struct inode *inode, struct file *file)
 
 EXPORT_SYMBOL (dquot_file_open)
 
int dquot_disable (struct super_block *sb, int type, unsigned int flags)
 
 EXPORT_SYMBOL (dquot_disable)
 
int dquot_quota_off (struct super_block *sb, int type)
 
 EXPORT_SYMBOL (dquot_quota_off)
 
int dquot_resume (struct super_block *sb, int type)
 
 EXPORT_SYMBOL (dquot_resume)
 
int dquot_quota_on (struct super_block *sb, int type, int format_id, struct path *path)
 
 EXPORT_SYMBOL (dquot_quota_on)
 
int dquot_enable (struct inode *inode, int type, int format_id, unsigned int flags)
 
 EXPORT_SYMBOL (dquot_enable)
 
int dquot_quota_on_mount (struct super_block *sb, char *qf_name, int format_id, int type)
 
 EXPORT_SYMBOL (dquot_quota_on_mount)
 
int dquot_get_dqblk (struct super_block *sb, struct kqid qid, struct fs_disk_quota *di)
 
 EXPORT_SYMBOL (dquot_get_dqblk)
 
int dquot_set_dqblk (struct super_block *sb, struct kqid qid, struct fs_disk_quota *di)
 
 EXPORT_SYMBOL (dquot_set_dqblk)
 
int dquot_get_dqinfo (struct super_block *sb, int type, struct if_dqinfo *ii)
 
 EXPORT_SYMBOL (dquot_get_dqinfo)
 
int dquot_set_dqinfo (struct super_block *sb, int type, struct if_dqinfo *ii)
 
 EXPORT_SYMBOL (dquot_set_dqinfo)
 
 EXPORT_SYMBOL (dquot_quotactl_ops)
 
 module_init (dquot_init)
 

Variables

struct dqstats dqstats
 
struct dquot_operations dquot_operations
 
struct quotactl_ops dquot_quotactl_ops
 

Macro Definition Documentation

#define VFS_FS_DQ_MASK
Value:
FS_DQ_ICOUNT | FS_DQ_ISOFT | FS_DQ_IHARD | \
FS_DQ_BTIMER | FS_DQ_ITIMER)

Definition at line 2396 of file dquot.c.

Function Documentation

int __dquot_alloc_space ( struct inode inode,
qsize_t  number,
int  flags 
)

Definition at line 1578 of file dquot.c.

void __dquot_free_space ( struct inode inode,
qsize_t  number,
int  flags 
)

Definition at line 1704 of file dquot.c.

int __dquot_transfer ( struct inode inode,
struct dquot **  transfer_to 
)

Definition at line 1790 of file dquot.c.

void __quota_error ( struct super_block sb,
const char func,
const char fmt,
  ... 
)

Definition at line 135 of file dquot.c.

struct dquot* dqget ( struct super_block sb,
struct kqid  qid 
)
read

Definition at line 834 of file dquot.c.

void dqput ( struct dquot dquot)

Definition at line 736 of file dquot.c.

int dquot_acquire ( struct dquot dquot)

Definition at line 406 of file dquot.c.

struct dquot* dquot_alloc ( struct super_block sb,
int  type 
)
read

Definition at line 799 of file dquot.c.

int dquot_alloc_inode ( const struct inode inode)

Definition at line 1634 of file dquot.c.

int dquot_claim_space_nodirty ( struct inode inode,
qsize_t  number 
)

Definition at line 1675 of file dquot.c.

int dquot_commit ( struct dquot dquot)

Definition at line 444 of file dquot.c.

int dquot_commit_info ( struct super_block sb,
int  type 
)

Definition at line 1916 of file dquot.c.

void dquot_destroy ( struct dquot dquot)

Definition at line 499 of file dquot.c.

int dquot_disable ( struct super_block sb,
int  type,
unsigned int  flags 
)

Definition at line 1959 of file dquot.c.

void dquot_drop ( struct inode inode)

Definition at line 1475 of file dquot.c.

int dquot_enable ( struct inode inode,
int  type,
int  format_id,
unsigned int  flags 
)

Definition at line 2273 of file dquot.c.

int dquot_file_open ( struct inode inode,
struct file file 
)

Definition at line 1945 of file dquot.c.

void dquot_free_inode ( const struct inode inode)

Definition at line 1749 of file dquot.c.

int dquot_get_dqblk ( struct super_block sb,
struct kqid  qid,
struct fs_disk_quota di 
)

Definition at line 2381 of file dquot.c.

int dquot_get_dqinfo ( struct super_block sb,
int  type,
struct if_dqinfo ii 
)

Definition at line 2512 of file dquot.c.

void dquot_initialize ( struct inode inode)

Definition at line 1452 of file dquot.c.

int dquot_mark_dquot_dirty ( struct dquot dquot)

Definition at line 344 of file dquot.c.

int dquot_quota_off ( struct super_block sb,
int  type 
)

Definition at line 2090 of file dquot.c.

int dquot_quota_on ( struct super_block sb,
int  type,
int  format_id,
struct path path 
)

Definition at line 2252 of file dquot.c.

int dquot_quota_on_mount ( struct super_block sb,
char qf_name,
int  format_id,
int  type 
)

Definition at line 2320 of file dquot.c.

int dquot_quota_sync ( struct super_block sb,
int  type 
)

Definition at line 651 of file dquot.c.

int dquot_release ( struct dquot dquot)

Definition at line 471 of file dquot.c.

int dquot_resume ( struct super_block sb,
int  type 
)

Definition at line 2216 of file dquot.c.

int dquot_scan_active ( struct super_block sb,
int(*)(struct dquot *dquot, unsigned long priv fn,
unsigned long  priv 
)

Definition at line 564 of file dquot.c.

int dquot_set_dqblk ( struct super_block sb,
struct kqid  qid,
struct fs_disk_quota di 
)

Definition at line 2493 of file dquot.c.

int dquot_set_dqinfo ( struct super_block sb,
int  type,
struct if_dqinfo ii 
)

Definition at line 2534 of file dquot.c.

int dquot_transfer ( struct inode inode,
struct iattr iattr 
)

Definition at line 1893 of file dquot.c.

int dquot_writeback_dquots ( struct super_block sb,
int  type 
)

Definition at line 600 of file dquot.c.

EXPORT_SYMBOL ( dq_data_lock  )
EXPORT_SYMBOL ( __quota_error  )
EXPORT_SYMBOL ( register_quota_format  )
EXPORT_SYMBOL ( unregister_quota_format  )
EXPORT_SYMBOL ( dqstats  )
EXPORT_SYMBOL ( dquot_mark_dquot_dirty  )
EXPORT_SYMBOL ( mark_info_dirty  )
EXPORT_SYMBOL ( dquot_acquire  )
EXPORT_SYMBOL ( dquot_commit  )
EXPORT_SYMBOL ( dquot_release  )
EXPORT_SYMBOL ( dquot_destroy  )
EXPORT_SYMBOL ( dquot_scan_active  )
EXPORT_SYMBOL ( dquot_writeback_dquots  )
EXPORT_SYMBOL ( dquot_quota_sync  )
EXPORT_SYMBOL ( dqput  )
EXPORT_SYMBOL ( dquot_alloc  )
EXPORT_SYMBOL ( dqget  )
EXPORT_SYMBOL ( dquot_initialize  )
EXPORT_SYMBOL ( dquot_drop  )
EXPORT_SYMBOL ( inode_add_rsv_space  )
EXPORT_SYMBOL ( inode_claim_rsv_space  )
EXPORT_SYMBOL ( inode_sub_rsv_space  )
EXPORT_SYMBOL ( __dquot_alloc_space  )
EXPORT_SYMBOL ( dquot_alloc_inode  )
EXPORT_SYMBOL ( dquot_claim_space_nodirty  )
EXPORT_SYMBOL ( __dquot_free_space  )
EXPORT_SYMBOL ( dquot_free_inode  )
EXPORT_SYMBOL ( __dquot_transfer  )
EXPORT_SYMBOL ( dquot_transfer  )
EXPORT_SYMBOL ( dquot_commit_info  )
EXPORT_SYMBOL ( dquot_operations  )
EXPORT_SYMBOL ( dquot_file_open  )
EXPORT_SYMBOL ( dquot_disable  )
EXPORT_SYMBOL ( dquot_quota_off  )
EXPORT_SYMBOL ( dquot_resume  )
EXPORT_SYMBOL ( dquot_quota_on  )
EXPORT_SYMBOL ( dquot_enable  )
EXPORT_SYMBOL ( dquot_quota_on_mount  )
EXPORT_SYMBOL ( dquot_get_dqblk  )
EXPORT_SYMBOL ( dquot_set_dqblk  )
EXPORT_SYMBOL ( dquot_get_dqinfo  )
EXPORT_SYMBOL ( dquot_set_dqinfo  )
EXPORT_SYMBOL ( dquot_quotactl_ops  )
void inode_add_rsv_space ( struct inode inode,
qsize_t  number 
)

Definition at line 1511 of file dquot.c.

void inode_claim_rsv_space ( struct inode inode,
qsize_t  number 
)

Definition at line 1519 of file dquot.c.

void inode_sub_rsv_space ( struct inode inode,
qsize_t  number 
)

Definition at line 1528 of file dquot.c.

void mark_info_dirty ( struct super_block sb,
int  type 
)

Definition at line 396 of file dquot.c.

module_init ( dquot_init  )
int register_quota_format ( struct quota_format_type fmt)

Definition at line 164 of file dquot.c.

void unregister_quota_format ( struct quota_format_type fmt)

Definition at line 174 of file dquot.c.

Variable Documentation

Definition at line 249 of file dquot.c.

Initial value:
= {
.write_dquot = dquot_commit,
.acquire_dquot = dquot_acquire,
.release_dquot = dquot_release,
.mark_dirty = dquot_mark_dquot_dirty,
.write_info = dquot_commit_info,
.alloc_dquot = dquot_alloc,
.destroy_dquot = dquot_destroy,
}

Definition at line 1931 of file dquot.c.

struct quotactl_ops dquot_quotactl_ops
Initial value:
= {
.quota_on = dquot_quota_on,
.quota_off = dquot_quota_off,
.quota_sync = dquot_quota_sync,
.get_info = dquot_get_dqinfo,
.set_info = dquot_set_dqinfo,
.get_dqblk = dquot_get_dqblk,
.set_dqblk = dquot_set_dqblk
}

Definition at line 2563 of file dquot.c.