Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
xfs_qm.c File Reference
#include "xfs.h"
#include "xfs_fs.h"
#include "xfs_bit.h"
#include "xfs_log.h"
#include "xfs_trans.h"
#include "xfs_sb.h"
#include "xfs_ag.h"
#include "xfs_alloc.h"
#include "xfs_quota.h"
#include "xfs_mount.h"
#include "xfs_bmap_btree.h"
#include "xfs_ialloc_btree.h"
#include "xfs_dinode.h"
#include "xfs_inode.h"
#include "xfs_ialloc.h"
#include "xfs_itable.h"
#include "xfs_rtalloc.h"
#include "xfs_error.h"
#include "xfs_bmap.h"
#include "xfs_attr.h"
#include "xfs_buf_item.h"
#include "xfs_trans_space.h"
#include "xfs_utils.h"
#include "xfs_qm.h"
#include "xfs_trace.h"

Go to the source code of this file.

Macros

#define XFS_DQ_LOOKUP_BATCH   32
 

Functions

STATIC int xfs_qm_init_quotainos (xfs_mount_t *)
 
STATIC int xfs_qm_init_quotainfo (xfs_mount_t *)
 
STATIC int xfs_qm_shake (struct shrinker *, struct shrink_control *)
 
STATIC int xfs_qm_dquot_walk (struct xfs_mount *mp, int type, int(*execute)(struct xfs_dquot *dqp, void *data), void *data)
 
STATIC int xfs_qm_dqpurge (struct xfs_dquot *dqp, void *data)
 
void xfs_qm_dqpurge_all (struct xfs_mount *mp, uint flags)
 
void xfs_qm_unmount (struct xfs_mount *mp)
 
void xfs_qm_mount_quotas (xfs_mount_t *mp)
 
void xfs_qm_unmount_quotas (xfs_mount_t *mp)
 
STATIC int xfs_qm_dqattach_one (xfs_inode_t *ip, xfs_dqid_t id, uint type, uint doalloc, xfs_dquot_t *udqhint, xfs_dquot_t **IO_idqpp)
 
STATIC void xfs_qm_dqattach_grouphint (xfs_dquot_t *udq, xfs_dquot_t *gdq)
 
int xfs_qm_dqattach_locked (xfs_inode_t *ip, uint flags)
 
int xfs_qm_dqattach (struct xfs_inode *ip, uint flags)
 
void xfs_qm_dqdetach (xfs_inode_t *ip)
 
void xfs_qm_destroy_quotainfo (xfs_mount_t *mp)
 
STATIC int xfs_qm_qino_alloc (xfs_mount_t *mp, xfs_inode_t **ip, __int64_t sbfields, uint flags)
 
STATIC void xfs_qm_reset_dqcounts (xfs_mount_t *mp, xfs_buf_t *bp, xfs_dqid_t id, uint type)
 
STATIC int xfs_qm_dqiter_bufs (struct xfs_mount *mp, xfs_dqid_t firstid, xfs_fsblock_t bno, xfs_filblks_t blkcnt, uint flags, struct list_head *buffer_list)
 
STATIC int xfs_qm_dqiterate (struct xfs_mount *mp, struct xfs_inode *qip, uint flags, struct list_head *buffer_list)
 
STATIC int xfs_qm_quotacheck_dqadjust (struct xfs_inode *ip, xfs_dqid_t id, uint type, xfs_qcnt_t nblks, xfs_qcnt_t rtblks)
 
STATIC int xfs_qm_get_rtblks (xfs_inode_t *ip, xfs_qcnt_t *O_rtblks)
 
STATIC int xfs_qm_dqusage_adjust (xfs_mount_t *mp, xfs_ino_t ino, void __user *buffer, int ubsize, int *ubused, int *res)
 
STATIC int xfs_qm_flush_one (struct xfs_dquot *dqp, void *data)
 
int xfs_qm_quotacheck (xfs_mount_t *mp)
 
STATIC void xfs_qm_dqfree_one (struct xfs_dquot *dqp)
 
STATIC void xfs_qm_dqreclaim_one (struct xfs_dquot *dqp, struct list_head *buffer_list, struct list_head *dispose_list)
 
int xfs_qm_write_sb_changes (xfs_mount_t *mp, __int64_t flags)
 
int xfs_qm_vop_dqalloc (struct xfs_inode *ip, uid_t uid, gid_t gid, prid_t prid, uint flags, struct xfs_dquot **O_udqpp, struct xfs_dquot **O_gdqpp)
 
xfs_dquot_txfs_qm_vop_chown (xfs_trans_t *tp, xfs_inode_t *ip, xfs_dquot_t **IO_olddq, xfs_dquot_t *newdq)
 
int xfs_qm_vop_chown_reserve (xfs_trans_t *tp, xfs_inode_t *ip, xfs_dquot_t *udqp, xfs_dquot_t *gdqp, uint flags)
 
int xfs_qm_vop_rename_dqattach (struct xfs_inode **i_tab)
 
void xfs_qm_vop_create_dqattach (struct xfs_trans *tp, struct xfs_inode *ip, struct xfs_dquot *udqp, struct xfs_dquot *gdqp)
 

Macro Definition Documentation

#define XFS_DQ_LOOKUP_BATCH   32

Definition at line 61 of file xfs_qm.c.

Function Documentation

void xfs_qm_destroy_quotainfo ( xfs_mount_t *  mp)

Definition at line 731 of file xfs_qm.c.

int xfs_qm_dqattach ( struct xfs_inode *  ip,
uint  flags 
)

Definition at line 577 of file xfs_qm.c.

STATIC void xfs_qm_dqattach_grouphint ( xfs_dquot_t udq,
xfs_dquot_t gdq 
)

Definition at line 456 of file xfs_qm.c.

int xfs_qm_dqattach_locked ( xfs_inode_t *  ip,
uint  flags 
)

Definition at line 504 of file xfs_qm.c.

STATIC int xfs_qm_dqattach_one ( xfs_inode_t *  ip,
xfs_dqid_t  id,
uint  type,
uint  doalloc,
xfs_dquot_t udqhint,
xfs_dquot_t **  IO_idqpp 
)

Definition at line 367 of file xfs_qm.c.

void xfs_qm_dqdetach ( xfs_inode_t *  ip)

Definition at line 599 of file xfs_qm.c.

STATIC void xfs_qm_dqfree_one ( struct xfs_dquot dqp)

Definition at line 1429 of file xfs_qm.c.

STATIC int xfs_qm_dqiter_bufs ( struct xfs_mount *  mp,
xfs_dqid_t  firstid,
xfs_fsblock_t  bno,
xfs_filblks_t  blkcnt,
uint  flags,
struct list_head buffer_list 
)

Definition at line 865 of file xfs_qm.c.

STATIC int xfs_qm_dqiterate ( struct xfs_mount *  mp,
struct xfs_inode *  qip,
uint  flags,
struct list_head buffer_list 
)

Definition at line 916 of file xfs_qm.c.

STATIC int xfs_qm_dqpurge ( struct xfs_dquot dqp,
void data 
)

Definition at line 131 of file xfs_qm.c.

void xfs_qm_dqpurge_all ( struct xfs_mount *  mp,
uint  flags 
)

Definition at line 216 of file xfs_qm.c.

STATIC void xfs_qm_dqreclaim_one ( struct xfs_dquot dqp,
struct list_head buffer_list,
struct list_head dispose_list 
)

Definition at line 1446 of file xfs_qm.c.

STATIC int xfs_qm_dquot_walk ( struct xfs_mount *  mp,
int  type,
int(*)(struct xfs_dquot *dqp, void *data execute,
void data 
)

Definition at line 64 of file xfs_qm.c.

STATIC int xfs_qm_dqusage_adjust ( xfs_mount_t *  mp,
xfs_ino_t  ino,
void __user buffer,
int  ubsize,
int ubused,
int res 
)

Definition at line 1097 of file xfs_qm.c.

STATIC int xfs_qm_flush_one ( struct xfs_dquot dqp,
void data 
)

Definition at line 1191 of file xfs_qm.c.

STATIC int xfs_qm_get_rtblks ( xfs_inode_t *  ip,
xfs_qcnt_t O_rtblks 
)

Definition at line 1067 of file xfs_qm.c.

STATIC int xfs_qm_init_quotainfo ( xfs_mount_t *  mp)

Definition at line 624 of file xfs_qm.c.

STATIC int xfs_qm_init_quotainos ( xfs_mount_t *  mp)

Definition at line 1355 of file xfs_qm.c.

void xfs_qm_mount_quotas ( xfs_mount_t *  mp)

Definition at line 252 of file xfs_qm.c.

STATIC int xfs_qm_qino_alloc ( xfs_mount_t *  mp,
xfs_inode_t **  ip,
__int64_t  sbfields,
uint  flags 
)

Definition at line 759 of file xfs_qm.c.

int xfs_qm_quotacheck ( xfs_mount_t *  mp)

Definition at line 1222 of file xfs_qm.c.

STATIC int xfs_qm_quotacheck_dqadjust ( struct xfs_inode *  ip,
xfs_dqid_t  id,
uint  type,
xfs_qcnt_t  nblks,
xfs_qcnt_t  rtblks 
)

Definition at line 1012 of file xfs_qm.c.

STATIC void xfs_qm_reset_dqcounts ( xfs_mount_t *  mp,
xfs_buf_t bp,
xfs_dqid_t  id,
uint  type 
)

Definition at line 822 of file xfs_qm.c.

STATIC int xfs_qm_shake ( struct shrinker shrink,
struct shrink_control sc 
)

Definition at line 1531 of file xfs_qm.c.

void xfs_qm_unmount ( struct xfs_mount *  mp)

Definition at line 232 of file xfs_qm.c.

void xfs_qm_unmount_quotas ( xfs_mount_t *  mp)

Definition at line 337 of file xfs_qm.c.

xfs_dquot_t* xfs_qm_vop_chown ( xfs_trans_t *  tp,
xfs_inode_t *  ip,
xfs_dquot_t **  IO_olddq,
xfs_dquot_t newdq 
)

Definition at line 1746 of file xfs_qm.c.

int xfs_qm_vop_chown_reserve ( xfs_trans_t *  tp,
xfs_inode_t *  ip,
xfs_dquot_t udqp,
xfs_dquot_t gdqp,
uint  flags 
)

Definition at line 1785 of file xfs_qm.c.

void xfs_qm_vop_create_dqattach ( struct xfs_trans *  tp,
struct xfs_inode *  ip,
struct xfs_dquot udqp,
struct xfs_dquot gdqp 
)

Definition at line 1893 of file xfs_qm.c.

int xfs_qm_vop_dqalloc ( struct xfs_inode *  ip,
uid_t  uid,
gid_t  gid,
prid_t  prid,
uint  flags,
struct xfs_dquot **  O_udqpp,
struct xfs_dquot **  O_gdqpp 
)

Definition at line 1614 of file xfs_qm.c.

int xfs_qm_vop_rename_dqattach ( struct xfs_inode **  i_tab)

Definition at line 1865 of file xfs_qm.c.

int xfs_qm_write_sb_changes ( xfs_mount_t *  mp,
__int64_t  flags 
)

Definition at line 1577 of file xfs_qm.c.