Lines Matching refs:type

47 struct dquot *dqget(struct super_block *sb, unsigned int id, int type);
52 struct dquot *dquot_alloc(struct super_block *sb, int type);
63 int dquot_disable(struct super_block *sb, int type, unsigned int flags);
65 static inline int dquot_suspend(struct super_block *sb, int type) in dquot_suspend() argument
67 return dquot_disable(sb, type, DQUOT_SUSPENDED); in dquot_suspend()
69 int dquot_resume(struct super_block *sb, int type);
74 int dquot_commit_info(struct super_block *sb, int type);
79 int dquot_enable(struct inode *inode, int type, int format_id,
81 int dquot_quota_on(struct super_block *sb, int type, int format_id,
84 int format_id, int type);
85 int dquot_quota_off(struct super_block *sb, int type);
86 int dquot_quota_sync(struct super_block *sb, int type, int wait);
87 int dquot_get_dqinfo(struct super_block *sb, int type, struct if_dqinfo *ii);
88 int dquot_set_dqinfo(struct super_block *sb, int type, struct if_dqinfo *ii);
89 int dquot_get_dqblk(struct super_block *sb, int type, qid_t id,
91 int dquot_set_dqblk(struct super_block *sb, int type, qid_t id,
97 static inline struct mem_dqinfo *sb_dqinfo(struct super_block *sb, int type) in sb_dqinfo() argument
99 return sb_dqopt(sb)->info + type; in sb_dqinfo()
106 static inline bool sb_has_quota_usage_enabled(struct super_block *sb, int type) in sb_has_quota_usage_enabled() argument
109 dquot_state_flag(DQUOT_USAGE_ENABLED, type); in sb_has_quota_usage_enabled()
112 static inline bool sb_has_quota_limits_enabled(struct super_block *sb, int type) in sb_has_quota_limits_enabled() argument
115 dquot_state_flag(DQUOT_LIMITS_ENABLED, type); in sb_has_quota_limits_enabled()
118 static inline bool sb_has_quota_suspended(struct super_block *sb, int type) in sb_has_quota_suspended() argument
121 dquot_state_flag(DQUOT_SUSPENDED, type); in sb_has_quota_suspended()
126 unsigned type, tmsk = 0; in sb_any_quota_suspended() local
127 for (type = 0; type < MAXQUOTAS; type++) in sb_any_quota_suspended()
128 tmsk |= sb_has_quota_suspended(sb, type) << type; in sb_any_quota_suspended()
133 static inline bool sb_has_quota_loaded(struct super_block *sb, int type) in sb_has_quota_loaded() argument
136 return sb_has_quota_usage_enabled(sb, type); in sb_has_quota_loaded()
141 unsigned type, tmsk = 0; in sb_any_quota_loaded() local
142 for (type = 0; type < MAXQUOTAS; type++) in sb_any_quota_loaded()
143 tmsk |= sb_has_quota_loaded(sb, type) << type; in sb_any_quota_loaded()
147 static inline bool sb_has_quota_active(struct super_block *sb, int type) in sb_has_quota_active() argument
149 return sb_has_quota_loaded(sb, type) && in sb_has_quota_active()
150 !sb_has_quota_suspended(sb, type); in sb_has_quota_active()
161 static inline int sb_has_quota_usage_enabled(struct super_block *sb, int type) in sb_has_quota_usage_enabled() argument
166 static inline int sb_has_quota_limits_enabled(struct super_block *sb, int type) in sb_has_quota_limits_enabled() argument
171 static inline int sb_has_quota_suspended(struct super_block *sb, int type) in sb_has_quota_suspended() argument
182 static inline int sb_has_quota_loaded(struct super_block *sb, int type) in sb_has_quota_loaded() argument
192 static inline int sb_has_quota_active(struct super_block *sb, int type) in sb_has_quota_active() argument
240 static inline int dquot_disable(struct super_block *sb, int type, in dquot_disable() argument
246 static inline int dquot_suspend(struct super_block *sb, int type) in dquot_suspend() argument
251 static inline int dquot_resume(struct super_block *sb, int type) in dquot_resume() argument