Go to the documentation of this file.
35 #include <linux/list.h>
39 #include <linux/wait.h>
181 #define DQUOT_INIT_ALLOC max(V1_INIT_ALLOC, V2_INIT_ALLOC)
182 #define DQUOT_INIT_REWRITE max(V1_INIT_REWRITE, V2_INIT_REWRITE)
183 #define DQUOT_DEL_ALLOC max(V1_DEL_ALLOC, V2_DEL_ALLOC)
184 #define DQUOT_DEL_REWRITE max(V1_DEL_REWRITE, V2_DEL_REWRITE)
221 #define DQF_MASK 0xffff
222 #define DQF_GETINFO_MASK 0x1ffff
223 #define DQF_SETINFO_MASK 0xffff
224 #define DQF_SYS_FILE_B 16
225 #define DQF_SYS_FILE (1 << DQF_SYS_FILE_B)
226 #define DQF_INFO_DIRTY_B 31
227 #define DQF_INFO_DIRTY (1 << DQF_INFO_DIRTY_B)
255 static inline void dqstats_inc(
unsigned int type)
260 static inline void dqstats_dec(
unsigned int type)
267 #define DQ_INODES_B 2
270 #define DQ_ACTIVE_B 5
271 #define DQ_LASTSET_B 6
349 #define DQUOT_USAGE_ENABLED (1 << _DQUOT_USAGE_ENABLED)
350 #define DQUOT_LIMITS_ENABLED (1 << _DQUOT_LIMITS_ENABLED)
351 #define DQUOT_SUSPENDED (1 << _DQUOT_SUSPENDED)
352 #define DQUOT_STATE_FLAGS (DQUOT_USAGE_ENABLED | DQUOT_LIMITS_ENABLED | \
355 #define DQUOT_STATE_LAST (_DQUOT_STATE_FLAGS * MAXQUOTAS)
356 #define DQUOT_QUOTA_SYS_FILE (1 << DQUOT_STATE_LAST)
363 #define DQUOT_NEGATIVE_USAGE (1 << (DQUOT_STATE_LAST + 1))
366 static inline unsigned int dquot_state_flag(
unsigned int flags,
int type)
371 static inline unsigned int dquot_generic_flag(
unsigned int flags,
int type)
376 #ifdef CONFIG_QUOTA_NETLINK_INTERFACE
378 const char warntype);
405 #define INIT_QUOTA_MODULE_NAMES {\
406 {QFMT_VFS_OLD, "quota_v1"},\
407 {QFMT_VFS_V0, "quota_v2"},\