Lines Matching refs:sdp

29 static inline void gfs2_log_lock(struct gfs2_sbd *sdp)  in gfs2_log_lock()  argument
30 __acquires(&sdp->sd_log_lock) in gfs2_log_lock()
32 spin_lock(&sdp->sd_log_lock); in gfs2_log_lock()
41 static inline void gfs2_log_unlock(struct gfs2_sbd *sdp) in gfs2_log_unlock() argument
42 __releases(&sdp->sd_log_lock) in gfs2_log_unlock()
44 spin_unlock(&sdp->sd_log_lock); in gfs2_log_unlock()
47 static inline void gfs2_log_pointers_init(struct gfs2_sbd *sdp, in gfs2_log_pointers_init() argument
50 if (++value == sdp->sd_jdesc->jd_blocks) { in gfs2_log_pointers_init()
53 sdp->sd_log_tail = value; in gfs2_log_pointers_init()
54 sdp->sd_log_flush_tail = value; in gfs2_log_pointers_init()
55 sdp->sd_log_head = value; in gfs2_log_pointers_init()
60 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in gfs2_ordered_add_inode() local
62 if (gfs2_is_jdata(ip) || !gfs2_is_ordered(sdp)) in gfs2_ordered_add_inode()
66 spin_lock(&sdp->sd_ordered_lock); in gfs2_ordered_add_inode()
68 list_add(&ip->i_ordered, &sdp->sd_log_ordered); in gfs2_ordered_add_inode()
69 spin_unlock(&sdp->sd_ordered_lock); in gfs2_ordered_add_inode()
74 extern unsigned int gfs2_struct2blk(struct gfs2_sbd *sdp, unsigned int nstruct);
76 extern bool gfs2_log_is_empty(struct gfs2_sbd *sdp);
77 extern void gfs2_log_release_revokes(struct gfs2_sbd *sdp, unsigned int revokes);
78 extern void gfs2_log_release(struct gfs2_sbd *sdp, unsigned int blks);
79 extern bool gfs2_log_try_reserve(struct gfs2_sbd *sdp, struct gfs2_trans *tr,
81 extern void gfs2_log_reserve(struct gfs2_sbd *sdp, struct gfs2_trans *tr,
83 extern void gfs2_write_log_header(struct gfs2_sbd *sdp, struct gfs2_jdesc *jd,
86 extern void gfs2_log_flush(struct gfs2_sbd *sdp, struct gfs2_glock *gl,
88 extern void gfs2_log_commit(struct gfs2_sbd *sdp, struct gfs2_trans *trans);
89 extern void gfs2_ail1_flush(struct gfs2_sbd *sdp, struct writeback_control *wbc);
90 extern void log_flush_wait(struct gfs2_sbd *sdp);
93 extern void gfs2_add_revoke(struct gfs2_sbd *sdp, struct gfs2_bufdata *bd);
95 extern void gfs2_flush_revokes(struct gfs2_sbd *sdp);
96 extern void gfs2_ail_drain(struct gfs2_sbd *sdp);