diff options
Diffstat (limited to 'fs/gfs2/incore.h')
-rw-r--r-- | fs/gfs2/incore.h | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/fs/gfs2/incore.h b/fs/gfs2/incore.h index 5c29216e9cc1..26aabd7caba7 100644 --- a/fs/gfs2/incore.h +++ b/fs/gfs2/incore.h | |||
@@ -31,7 +31,6 @@ struct gfs2_holder; | |||
31 | struct gfs2_glock; | 31 | struct gfs2_glock; |
32 | struct gfs2_quota_data; | 32 | struct gfs2_quota_data; |
33 | struct gfs2_trans; | 33 | struct gfs2_trans; |
34 | struct gfs2_ail; | ||
35 | struct gfs2_jdesc; | 34 | struct gfs2_jdesc; |
36 | struct gfs2_sbd; | 35 | struct gfs2_sbd; |
37 | struct lm_lockops; | 36 | struct lm_lockops; |
@@ -53,7 +52,7 @@ struct gfs2_log_header_host { | |||
53 | 52 | ||
54 | struct gfs2_log_operations { | 53 | struct gfs2_log_operations { |
55 | void (*lo_before_commit) (struct gfs2_sbd *sdp); | 54 | void (*lo_before_commit) (struct gfs2_sbd *sdp); |
56 | void (*lo_after_commit) (struct gfs2_sbd *sdp, struct gfs2_ail *ai); | 55 | void (*lo_after_commit) (struct gfs2_sbd *sdp, struct gfs2_trans *tr); |
57 | void (*lo_before_scan) (struct gfs2_jdesc *jd, | 56 | void (*lo_before_scan) (struct gfs2_jdesc *jd, |
58 | struct gfs2_log_header_host *head, int pass); | 57 | struct gfs2_log_header_host *head, int pass); |
59 | int (*lo_scan_elements) (struct gfs2_jdesc *jd, unsigned int start, | 58 | int (*lo_scan_elements) (struct gfs2_jdesc *jd, unsigned int start, |
@@ -139,7 +138,7 @@ struct gfs2_bufdata { | |||
139 | struct list_head bd_list; | 138 | struct list_head bd_list; |
140 | const struct gfs2_log_operations *bd_ops; | 139 | const struct gfs2_log_operations *bd_ops; |
141 | 140 | ||
142 | struct gfs2_ail *bd_ail; | 141 | struct gfs2_trans *bd_tr; |
143 | struct list_head bd_ail_st_list; | 142 | struct list_head bd_ail_st_list; |
144 | struct list_head bd_ail_gl_list; | 143 | struct list_head bd_ail_gl_list; |
145 | }; | 144 | }; |
@@ -211,7 +210,7 @@ struct gfs2_glock_operations { | |||
211 | int (*go_lock) (struct gfs2_holder *gh); | 210 | int (*go_lock) (struct gfs2_holder *gh); |
212 | void (*go_unlock) (struct gfs2_holder *gh); | 211 | void (*go_unlock) (struct gfs2_holder *gh); |
213 | int (*go_dump)(struct seq_file *seq, const struct gfs2_glock *gl); | 212 | int (*go_dump)(struct seq_file *seq, const struct gfs2_glock *gl); |
214 | void (*go_callback) (struct gfs2_glock *gl); | 213 | void (*go_callback)(struct gfs2_glock *gl, bool remote); |
215 | const int go_type; | 214 | const int go_type; |
216 | const unsigned long go_flags; | 215 | const unsigned long go_flags; |
217 | #define GLOF_ASPACE 1 | 216 | #define GLOF_ASPACE 1 |
@@ -433,6 +432,7 @@ struct gfs2_trans { | |||
433 | struct gfs2_holder tr_t_gh; | 432 | struct gfs2_holder tr_t_gh; |
434 | 433 | ||
435 | int tr_touched; | 434 | int tr_touched; |
435 | int tr_attached; | ||
436 | 436 | ||
437 | unsigned int tr_num_buf_new; | 437 | unsigned int tr_num_buf_new; |
438 | unsigned int tr_num_databuf_new; | 438 | unsigned int tr_num_databuf_new; |
@@ -440,14 +440,12 @@ struct gfs2_trans { | |||
440 | unsigned int tr_num_databuf_rm; | 440 | unsigned int tr_num_databuf_rm; |
441 | unsigned int tr_num_revoke; | 441 | unsigned int tr_num_revoke; |
442 | unsigned int tr_num_revoke_rm; | 442 | unsigned int tr_num_revoke_rm; |
443 | }; | ||
444 | 443 | ||
445 | struct gfs2_ail { | 444 | struct list_head tr_list; |
446 | struct list_head ai_list; | ||
447 | 445 | ||
448 | unsigned int ai_first; | 446 | unsigned int tr_first; |
449 | struct list_head ai_ail1_list; | 447 | struct list_head tr_ail1_list; |
450 | struct list_head ai_ail2_list; | 448 | struct list_head tr_ail2_list; |
451 | }; | 449 | }; |
452 | 450 | ||
453 | struct gfs2_journal_extent { | 451 | struct gfs2_journal_extent { |
@@ -710,6 +708,7 @@ struct gfs2_sbd { | |||
710 | 708 | ||
711 | spinlock_t sd_log_lock; | 709 | spinlock_t sd_log_lock; |
712 | 710 | ||
711 | struct gfs2_trans *sd_log_tr; | ||
713 | unsigned int sd_log_blks_reserved; | 712 | unsigned int sd_log_blks_reserved; |
714 | unsigned int sd_log_commited_buf; | 713 | unsigned int sd_log_commited_buf; |
715 | unsigned int sd_log_commited_databuf; | 714 | unsigned int sd_log_commited_databuf; |