Lines Matching refs:type

69 struct dquot *dquot_alloc(struct super_block *sb, int type);
81 int dquot_disable(struct super_block *sb, int type, unsigned int flags);
83 static inline int dquot_suspend(struct super_block *sb, int type)
85 return dquot_disable(sb, type, DQUOT_SUSPENDED);
87 int dquot_resume(struct super_block *sb, int type);
92 int dquot_commit_info(struct super_block *sb, int type);
98 int dquot_load_quota_sb(struct super_block *sb, int type, int format_id,
100 int dquot_load_quota_inode(struct inode *inode, int type, int format_id,
102 int dquot_quota_on(struct super_block *sb, int type, int format_id,
105 int format_id, int type);
106 int dquot_quota_off(struct super_block *sb, int type);
107 int dquot_writeback_dquots(struct super_block *sb, int type);
108 int dquot_quota_sync(struct super_block *sb, int type);
110 int dquot_set_dqinfo(struct super_block *sb, int type, struct qc_info *ii);
122 static inline struct mem_dqinfo *sb_dqinfo(struct super_block *sb, int type)
124 return sb_dqopt(sb)->info + type;
131 static inline bool sb_has_quota_usage_enabled(struct super_block *sb, int type)
134 dquot_state_flag(DQUOT_USAGE_ENABLED, type);
137 static inline bool sb_has_quota_limits_enabled(struct super_block *sb, int type)
140 dquot_state_flag(DQUOT_LIMITS_ENABLED, type);
143 static inline bool sb_has_quota_suspended(struct super_block *sb, int type)
146 dquot_state_flag(DQUOT_SUSPENDED, type);
154 /* Does kernel know about any quota information for given sb + type? */
155 static inline bool sb_has_quota_loaded(struct super_block *sb, int type)
158 return sb_has_quota_usage_enabled(sb, type);
166 static inline bool sb_has_quota_active(struct super_block *sb, int type)
168 return sb_has_quota_loaded(sb, type) &&
169 !sb_has_quota_suspended(sb, type);
180 static inline int sb_has_quota_usage_enabled(struct super_block *sb, int type)
185 static inline int sb_has_quota_limits_enabled(struct super_block *sb, int type)
190 static inline int sb_has_quota_suspended(struct super_block *sb, int type)
200 /* Does kernel know about any quota information for given sb + type? */
201 static inline int sb_has_quota_loaded(struct super_block *sb, int type)
211 static inline int sb_has_quota_active(struct super_block *sb, int type)
272 static inline int dquot_disable(struct super_block *sb, int type,
278 static inline int dquot_suspend(struct super_block *sb, int type)
283 static inline int dquot_resume(struct super_block *sb, int type)
290 static inline int dquot_writeback_dquots(struct super_block *sb, int type)
399 unsigned int qtype_enforce_flag(int type);