#include <limits.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "dict.h"
#include "f2fs_fs.h"
#include "f2fs.h"
#include "node.h"
#include "fsck.h"
#include "dqblk_v2.h"
Go to the source code of this file.
|
| enum | quota_type {
USRQUOTA = 0
, GRPQUOTA = 1
, PRJQUOTA = 2
, MAXQUOTAS = 3
,
USRQUOTA = 0
, GRPQUOTA = 1
, PRJQUOTA = 2
, MAXQUOTAS = 3
} |
| |
| enum | qf_szchk_type_t { QF_SZCHK_NONE
, QF_SZCHK_ERR
, QF_SZCHK_INLINE
, QF_SZCHK_REGFILE
} |
| |
|
| errcode_t | quota_file_open (struct f2fs_sb_info *sbi, struct quota_handle *h, enum quota_type qtype, int flags) |
| |
| errcode_t | quota_file_create (struct f2fs_sb_info *sbi, struct quota_handle *h, enum quota_type qtype) |
| |
| errcode_t | quota_file_close (struct f2fs_sb_info *sbi, struct quota_handle *h, int update_filesize) |
| |
| struct dquot * | get_empty_dquot (void) |
| |
| const char * | quota_type2name (enum quota_type qtype) |
| |
| void | update_grace_times (struct dquot *q) |
| |
| errcode_t | quota_init_context (struct f2fs_sb_info *sbi) |
| |
| void | quota_data_inodes (quota_ctx_t qctx, struct f2fs_inode *inode, int adjust) |
| |
| void | quota_data_add (quota_ctx_t qctx, struct f2fs_inode *inode, qsize_t space) |
| |
| void | quota_data_sub (quota_ctx_t qctx, struct f2fs_inode *inode, qsize_t space) |
| |
| errcode_t | quota_write_inode (struct f2fs_sb_info *sbi, enum quota_type qtype) |
| |
| void | quota_add_inode_usage (quota_ctx_t qctx, f2fs_ino_t ino, struct f2fs_inode *inode) |
| |
| void | quota_release_context (quota_ctx_t *qctx) |
| |
| errcode_t | quota_compare_and_update (struct f2fs_sb_info *sbi, enum quota_type qtype, int *usage_inconsistent, int preserve_limits) |
| |
| static errcode_t | quota_get_mem (unsigned long size, void *ptr) |
| |
| static errcode_t | quota_get_memzero (unsigned long size, void *ptr) |
| |
| static errcode_t | quota_free_mem (void *ptr) |
| |
◆ __bitwise
◆ __force
◆ DQF_SEEN
◆ INITQMAGICS
Value: {\
0xd9c01f11, \
0xd9c01927, \
0xd9c03f14 \
}
◆ IOFL_INFODIRTY
| #define IOFL_INFODIRTY 0x01 /* Did info change? */ |
◆ MAX_DQ_TIME
| #define MAX_DQ_TIME 604800 /* (7*24*60*60) 1 week */ |
◆ MAX_IQ_TIME
| #define MAX_IQ_TIME 604800 /* (7*24*60*60) 1 week */ |
◆ QFMT_VFS_OLD
◆ QFMT_VFS_V0
◆ QFMT_VFS_V1
◆ QUOTA_ALL_BIT
◆ QUOTA_GRP_BIT
◆ QUOTA_PRJ_BIT
◆ QUOTA_USR_BIT
◆ QUOTABLOCK_BITS
| #define QUOTABLOCK_BITS 10 |
◆ QUOTABLOCK_SIZE
◆ toqb
◆ errcode_t
◆ f2fs_ino_t
◆ qsize_t
◆ quota_ctx_t
◆ qf_szchk_type_t
| Enumerator |
|---|
| QF_SZCHK_NONE | |
| QF_SZCHK_ERR | |
| QF_SZCHK_INLINE | |
| QF_SZCHK_REGFILE | |
◆ quota_type
| Enumerator |
|---|
| USRQUOTA | |
| GRPQUOTA | |
| PRJQUOTA | |
| MAXQUOTAS | |
| USRQUOTA | |
| GRPQUOTA | |
| PRJQUOTA | |
| MAXQUOTAS | |
◆ get_empty_dquot()
| struct dquot * get_empty_dquot |
( |
void |
| ) |
|
◆ quota_add_inode_usage()
◆ quota_compare_and_update()
◆ quota_data_add()
◆ quota_data_inodes()
◆ quota_data_sub()
◆ quota_file_close()
◆ quota_file_create()
◆ quota_file_open()
◆ quota_free_mem()
| static errcode_t quota_free_mem |
( |
void * |
ptr | ) |
|
|
inlinestatic |
◆ quota_get_mem()
| static errcode_t quota_get_mem |
( |
unsigned long |
size, |
|
|
void * |
ptr |
|
) |
| |
|
inlinestatic |
◆ quota_get_memzero()
| static errcode_t quota_get_memzero |
( |
unsigned long |
size, |
|
|
void * |
ptr |
|
) |
| |
|
inlinestatic |
◆ quota_init_context()
◆ quota_release_context()
◆ quota_type2name()
| const char * quota_type2name |
( |
enum quota_type |
qtype | ) |
|
Convert type of quota to written representation
◆ quota_write_inode()
◆ update_grace_times()
| void update_grace_times |
( |
struct dquot * |
q | ) |
|
◆ cur_qtype
◆ qf_last_blkofs
◆ qf_maxsize
◆ qf_szchk_type