Lines Matching refs:sdp

28 void gfs2_assert_i(struct gfs2_sbd *sdp);
30 #define gfs2_assert(sdp, assertion) \
33 gfs2_assert_i(sdp); \
39 void gfs2_assert_withdraw_i(struct gfs2_sbd *sdp, char *assertion,
43 #define gfs2_assert_withdraw(sdp, assertion) \
47 gfs2_assert_withdraw_i((sdp), #assertion, \
52 #define gfs2_assert_withdraw_delayed(sdp, assertion) \
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) \
68 gfs2_assert_warn_i((sdp), #assertion, \
73 void gfs2_consist_i(struct gfs2_sbd *sdp,
76 #define gfs2_consist(sdp) \
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,
104 fs_err(sdp, "Magic number missing at %llu\n",
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,
126 return gfs2_meta_check_ii(sdp, bh, "magic number", function,
129 return gfs2_metatype_check_ii(sdp, bh, type, t, function,
134 #define gfs2_metatype_check(sdp, bh, type) \
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) \
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) \
165 gfs2_io_error_bh_i((sdp), (bh), __func__, __FILE__, __LINE__, true);
167 #define gfs2_io_error_bh(sdp, bh) \
168 gfs2_io_error_bh_i((sdp), (bh), __func__, __FILE__, __LINE__, false);
194 * @sdp: the superblock
196 static inline void gfs2_withdraw_delayed(struct gfs2_sbd *sdp)
198 set_bit(SDF_WITHDRAWING, &sdp->sd_flags);
203 * @sdp: the superblock
205 static inline bool gfs2_withdrawn(struct gfs2_sbd *sdp)
207 return test_bit(SDF_WITHDRAWN, &sdp->sd_flags) ||
208 test_bit(SDF_WITHDRAWING, &sdp->sd_flags);
213 * @sdp: the superblock
215 static inline bool gfs2_withdrawing(struct gfs2_sbd *sdp)
217 return test_bit(SDF_WITHDRAWING, &sdp->sd_flags) &&
218 !test_bit(SDF_WITHDRAWN, &sdp->sd_flags);
221 #define gfs2_tune_get(sdp, field) \
222 gfs2_tune_get_i(&(sdp)->sd_tune, &(sdp)->sd_tune.field)
225 void gfs2_lm(struct gfs2_sbd *sdp, const char *fmt, ...);
226 int gfs2_withdraw(struct gfs2_sbd *sdp);