Lines Matching refs:type
68 struct dquot *dquot_alloc(struct super_block *sb, int type);
80 int dquot_disable(struct super_block *sb, int type, unsigned int flags);
82 static inline int dquot_suspend(struct super_block *sb, int type) in dquot_suspend() argument
84 return dquot_disable(sb, type, DQUOT_SUSPENDED); in dquot_suspend()
86 int dquot_resume(struct super_block *sb, int type);
91 int dquot_commit_info(struct super_block *sb, int type);
97 int dquot_load_quota_sb(struct super_block *sb, int type, int format_id,
99 int dquot_load_quota_inode(struct inode *inode, int type, int format_id,
101 int dquot_quota_on(struct super_block *sb, int type, int format_id,
104 int format_id, int type);
105 int dquot_quota_off(struct super_block *sb, int type);
106 int dquot_writeback_dquots(struct super_block *sb, int type);
107 int dquot_quota_sync(struct super_block *sb, int type);
109 int dquot_set_dqinfo(struct super_block *sb, int type, struct qc_info *ii);
120 static inline struct mem_dqinfo *sb_dqinfo(struct super_block *sb, int type) in sb_dqinfo() argument
122 return sb_dqopt(sb)->info + type; in sb_dqinfo()
129 static inline bool sb_has_quota_usage_enabled(struct super_block *sb, int type) in sb_has_quota_usage_enabled() argument
132 dquot_state_flag(DQUOT_USAGE_ENABLED, type); in sb_has_quota_usage_enabled()
135 static inline bool sb_has_quota_limits_enabled(struct super_block *sb, int type) in sb_has_quota_limits_enabled() argument
138 dquot_state_flag(DQUOT_LIMITS_ENABLED, type); in sb_has_quota_limits_enabled()
141 static inline bool sb_has_quota_suspended(struct super_block *sb, int type) in sb_has_quota_suspended() argument
144 dquot_state_flag(DQUOT_SUSPENDED, type); in sb_has_quota_suspended()
153 static inline bool sb_has_quota_loaded(struct super_block *sb, int type) in sb_has_quota_loaded() argument
156 return sb_has_quota_usage_enabled(sb, type); in sb_has_quota_loaded()
164 static inline bool sb_has_quota_active(struct super_block *sb, int type) in sb_has_quota_active() argument
166 return sb_has_quota_loaded(sb, type) && in sb_has_quota_active()
167 !sb_has_quota_suspended(sb, type); in sb_has_quota_active()
178 static inline int sb_has_quota_usage_enabled(struct super_block *sb, int type) in sb_has_quota_usage_enabled() argument
183 static inline int sb_has_quota_limits_enabled(struct super_block *sb, int type) in sb_has_quota_limits_enabled() argument
188 static inline int sb_has_quota_suspended(struct super_block *sb, int type) in sb_has_quota_suspended() argument
199 static inline int sb_has_quota_loaded(struct super_block *sb, int type) in sb_has_quota_loaded() argument
209 static inline int sb_has_quota_active(struct super_block *sb, int type) in sb_has_quota_active() argument
270 static inline int dquot_disable(struct super_block *sb, int type, in dquot_disable() argument
276 static inline int dquot_suspend(struct super_block *sb, int type) in dquot_suspend() argument
281 static inline int dquot_resume(struct super_block *sb, int type) in dquot_resume() argument
288 static inline int dquot_writeback_dquots(struct super_block *sb, int type) in dquot_writeback_dquots() argument
401 unsigned int qtype_enforce_flag(int type);