Lines Matching refs:sb

17 static inline struct quota_info *sb_dqopt(struct super_block *sb)  in sb_dqopt()  argument
19 return &sb->s_dquot; in sb_dqopt()
35 #define quota_error(sb, fmt, args...) \ argument
36 __quota_error((sb), __func__, fmt , ## args)
39 void __quota_error(struct super_block *sb, const char *func,
48 struct dquot *dqget(struct super_block *sb, struct kqid qid);
58 int dquot_scan_active(struct super_block *sb,
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);
85 int dquot_get_next_id(struct super_block *sb, struct kqid *qid);
92 int dquot_quota_on(struct super_block *sb, int type, int format_id,
94 int dquot_quota_on_mount(struct super_block *sb, char *qf_name,
96 int dquot_quota_off(struct super_block *sb, int type);
97 int dquot_writeback_dquots(struct super_block *sb, int type);
98 int dquot_quota_sync(struct super_block *sb, int type);
99 int dquot_get_state(struct super_block *sb, struct qc_state *state);
100 int dquot_set_dqinfo(struct super_block *sb, int type, struct qc_info *ii);
101 int dquot_get_dqblk(struct super_block *sb, struct kqid id,
103 int dquot_get_next_dqblk(struct super_block *sb, struct kqid *id,
105 int dquot_set_dqblk(struct super_block *sb, struct kqid id,
111 static inline struct mem_dqinfo *sb_dqinfo(struct super_block *sb, int type) in sb_dqinfo() argument
113 return sb_dqopt(sb)->info + type; in sb_dqinfo()
120 static inline bool sb_has_quota_usage_enabled(struct super_block *sb, int type) in sb_has_quota_usage_enabled() argument
122 return sb_dqopt(sb)->flags & in sb_has_quota_usage_enabled()
126 static inline bool sb_has_quota_limits_enabled(struct super_block *sb, int type) in sb_has_quota_limits_enabled() argument
128 return sb_dqopt(sb)->flags & in sb_has_quota_limits_enabled()
132 static inline bool sb_has_quota_suspended(struct super_block *sb, int type) in sb_has_quota_suspended() argument
134 return sb_dqopt(sb)->flags & in sb_has_quota_suspended()
138 static inline unsigned sb_any_quota_suspended(struct super_block *sb) in sb_any_quota_suspended() argument
140 return dquot_state_types(sb_dqopt(sb)->flags, DQUOT_SUSPENDED); 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()
150 static inline unsigned sb_any_quota_loaded(struct super_block *sb) in sb_any_quota_loaded() argument
152 return dquot_state_types(sb_dqopt(sb)->flags, DQUOT_USAGE_ENABLED); in sb_any_quota_loaded()
155 static inline bool sb_has_quota_active(struct super_block *sb, int type) in sb_has_quota_active() argument
157 return sb_has_quota_loaded(sb, type) && in sb_has_quota_active()
158 !sb_has_quota_suspended(sb, type); in sb_has_quota_active()
169 static inline int sb_has_quota_usage_enabled(struct super_block *sb, int type) in sb_has_quota_usage_enabled() argument
174 static inline int sb_has_quota_limits_enabled(struct super_block *sb, int type) in sb_has_quota_limits_enabled() argument
179 static inline int sb_has_quota_suspended(struct super_block *sb, int type) in sb_has_quota_suspended() argument
184 static inline int sb_any_quota_suspended(struct super_block *sb) in sb_any_quota_suspended() argument
190 static inline int sb_has_quota_loaded(struct super_block *sb, int type) in sb_has_quota_loaded() argument
195 static inline int sb_any_quota_loaded(struct super_block *sb) in sb_any_quota_loaded() argument
200 static inline int sb_has_quota_active(struct super_block *sb, int type) in sb_has_quota_active() argument
261 static inline int dquot_disable(struct super_block *sb, int type, in dquot_disable() argument
267 static inline int dquot_suspend(struct super_block *sb, int type) in dquot_suspend() argument
272 static inline int dquot_resume(struct super_block *sb, int type) in dquot_resume() argument
279 static inline int dquot_writeback_dquots(struct super_block *sb, int type) in dquot_writeback_dquots() argument