Lines Matching refs:sdp
28 void gfs2_assert_i(struct gfs2_sbd *sdp);
30 #define gfs2_assert(sdp, assertion) \ argument
33 gfs2_assert_i(sdp); \
39 void gfs2_assert_withdraw_i(struct gfs2_sbd *sdp, char *assertion,
43 #define gfs2_assert_withdraw(sdp, assertion) \ argument
47 gfs2_assert_withdraw_i((sdp), #assertion, \
52 #define gfs2_assert_withdraw_delayed(sdp, assertion) \ argument
56 gfs2_assert_withdraw_i((sdp), #assertion, \
61 void gfs2_assert_warn_i(struct gfs2_sbd *sdp, char *assertion,
64 #define gfs2_assert_warn(sdp, assertion) \ argument
68 gfs2_assert_warn_i((sdp), #assertion, \
73 void gfs2_consist_i(struct gfs2_sbd *sdp,
76 #define gfs2_consist(sdp) \ argument
77 gfs2_consist_i((sdp), __func__, __FILE__, __LINE__)
94 int gfs2_meta_check_ii(struct gfs2_sbd *sdp, struct buffer_head *bh,
98 static inline int gfs2_meta_check(struct gfs2_sbd *sdp, in gfs2_meta_check() argument
104 fs_err(sdp, "Magic number missing at %llu\n", in gfs2_meta_check()
111 int gfs2_metatype_check_ii(struct gfs2_sbd *sdp, struct buffer_head *bh,
116 static inline int gfs2_metatype_check_i(struct gfs2_sbd *sdp, in gfs2_metatype_check_i() argument
126 return gfs2_meta_check_ii(sdp, bh, "magic number", function, in gfs2_metatype_check_i()
129 return gfs2_metatype_check_ii(sdp, bh, type, t, function, in gfs2_metatype_check_i()
134 #define gfs2_metatype_check(sdp, bh, type) \ argument
135 gfs2_metatype_check_i((sdp), (bh), (type), __func__, __FILE__, __LINE__)
147 int gfs2_io_error_i(struct gfs2_sbd *sdp, const char *function,
150 extern int check_journal_clean(struct gfs2_sbd *sdp, struct gfs2_jdesc *jd,
152 extern int gfs2_freeze_lock(struct gfs2_sbd *sdp,
156 #define gfs2_io_error(sdp) \ argument
157 gfs2_io_error_i((sdp), __func__, __FILE__, __LINE__)
160 void gfs2_io_error_bh_i(struct gfs2_sbd *sdp, struct buffer_head *bh,
164 #define gfs2_io_error_bh_wd(sdp, bh) \ argument
165 gfs2_io_error_bh_i((sdp), (bh), __func__, __FILE__, __LINE__, true)
167 #define gfs2_io_error_bh(sdp, bh) \ argument
168 gfs2_io_error_bh_i((sdp), (bh), __func__, __FILE__, __LINE__, false)
196 static inline void gfs2_withdraw_delayed(struct gfs2_sbd *sdp) in gfs2_withdraw_delayed() argument
198 set_bit(SDF_WITHDRAWING, &sdp->sd_flags); in gfs2_withdraw_delayed()
205 static inline bool gfs2_withdrawn(struct gfs2_sbd *sdp) in gfs2_withdrawn() argument
207 return test_bit(SDF_WITHDRAWN, &sdp->sd_flags) || in gfs2_withdrawn()
208 test_bit(SDF_WITHDRAWING, &sdp->sd_flags); in gfs2_withdrawn()
215 static inline bool gfs2_withdrawing(struct gfs2_sbd *sdp) in gfs2_withdrawing() argument
217 return test_bit(SDF_WITHDRAWING, &sdp->sd_flags) && in gfs2_withdrawing()
218 !test_bit(SDF_WITHDRAWN, &sdp->sd_flags); in gfs2_withdrawing()
221 static inline bool gfs2_withdraw_in_prog(struct gfs2_sbd *sdp) in gfs2_withdraw_in_prog() argument
223 return test_bit(SDF_WITHDRAW_IN_PROG, &sdp->sd_flags); in gfs2_withdraw_in_prog()
226 #define gfs2_tune_get(sdp, field) \ argument
227 gfs2_tune_get_i(&(sdp)->sd_tune, &(sdp)->sd_tune.field)
230 void gfs2_lm(struct gfs2_sbd *sdp, const char *fmt, ...);
231 int gfs2_withdraw(struct gfs2_sbd *sdp);