Lines Matching refs:type
61 struct dquot *dquot_alloc(struct super_block *sb, int type);
73 int dquot_disable(struct super_block *sb, int type, unsigned int flags);
75 static inline int dquot_suspend(struct super_block *sb, int type) in dquot_suspend() argument
77 return dquot_disable(sb, type, DQUOT_SUSPENDED); in dquot_suspend()
79 int dquot_resume(struct super_block *sb, int type);
84 int dquot_commit_info(struct super_block *sb, int type);
89 int dquot_enable(struct inode *inode, int type, int format_id,
91 int dquot_quota_on(struct super_block *sb, int type, int format_id,
94 int format_id, int type);
95 int dquot_quota_off(struct super_block *sb, int type);
96 int dquot_writeback_dquots(struct super_block *sb, int type);
97 int dquot_quota_sync(struct super_block *sb, int type);
98 int dquot_get_dqinfo(struct super_block *sb, int type, struct if_dqinfo *ii);
99 int dquot_set_dqinfo(struct super_block *sb, int type, struct if_dqinfo *ii);
108 static inline struct mem_dqinfo *sb_dqinfo(struct super_block *sb, int type) in sb_dqinfo() argument
110 return sb_dqopt(sb)->info + type; in sb_dqinfo()
117 static inline bool sb_has_quota_usage_enabled(struct super_block *sb, int type) in sb_has_quota_usage_enabled() argument
120 dquot_state_flag(DQUOT_USAGE_ENABLED, type); in sb_has_quota_usage_enabled()
123 static inline bool sb_has_quota_limits_enabled(struct super_block *sb, int type) in sb_has_quota_limits_enabled() argument
126 dquot_state_flag(DQUOT_LIMITS_ENABLED, type); in sb_has_quota_limits_enabled()
129 static inline bool sb_has_quota_suspended(struct super_block *sb, int type) in sb_has_quota_suspended() argument
132 dquot_state_flag(DQUOT_SUSPENDED, type); in sb_has_quota_suspended()
137 unsigned type, tmsk = 0; in sb_any_quota_suspended() local
138 for (type = 0; type < MAXQUOTAS; type++) in sb_any_quota_suspended()
139 tmsk |= sb_has_quota_suspended(sb, type) << type; in sb_any_quota_suspended()
144 static inline bool sb_has_quota_loaded(struct super_block *sb, int type) in sb_has_quota_loaded() argument
147 return sb_has_quota_usage_enabled(sb, type); in sb_has_quota_loaded()
152 unsigned type, tmsk = 0; in sb_any_quota_loaded() local
153 for (type = 0; type < MAXQUOTAS; type++) in sb_any_quota_loaded()
154 tmsk |= sb_has_quota_loaded(sb, type) << type; in sb_any_quota_loaded()
158 static inline bool sb_has_quota_active(struct super_block *sb, int type) in sb_has_quota_active() argument
160 return sb_has_quota_loaded(sb, type) && in sb_has_quota_active()
161 !sb_has_quota_suspended(sb, type); in sb_has_quota_active()
172 static inline int sb_has_quota_usage_enabled(struct super_block *sb, int type) in sb_has_quota_usage_enabled() argument
177 static inline int sb_has_quota_limits_enabled(struct super_block *sb, int type) in sb_has_quota_limits_enabled() argument
182 static inline int sb_has_quota_suspended(struct super_block *sb, int type) in sb_has_quota_suspended() argument
193 static inline int sb_has_quota_loaded(struct super_block *sb, int type) in sb_has_quota_loaded() argument
203 static inline int sb_has_quota_active(struct super_block *sb, int type) in sb_has_quota_active() argument
258 static inline int dquot_disable(struct super_block *sb, int type, in dquot_disable() argument
264 static inline int dquot_suspend(struct super_block *sb, int type) in dquot_suspend() argument
269 static inline int dquot_resume(struct super_block *sb, int type) in dquot_resume() argument
276 static inline int dquot_writeback_dquots(struct super_block *sb, int type) in dquot_writeback_dquots() argument