aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/gfs2/log.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/fs/gfs2/log.c b/fs/gfs2/log.c
index f49a12e24086..f7c0608332fb 100644
--- a/fs/gfs2/log.c
+++ b/fs/gfs2/log.c
@@ -83,11 +83,6 @@ static void gfs2_ail1_start_one(struct gfs2_sbd *sdp, struct gfs2_ail *ai)
83 83
84 gfs2_assert(sdp, bd->bd_ail == ai); 84 gfs2_assert(sdp, bd->bd_ail == ai);
85 85
86 if (!bh){
87 list_move(&bd->bd_ail_st_list, &ai->ai_ail2_list);
88 continue;
89 }
90
91 if (!buffer_busy(bh)) { 86 if (!buffer_busy(bh)) {
92 if (!buffer_uptodate(bh)) { 87 if (!buffer_uptodate(bh)) {
93 gfs2_log_unlock(sdp); 88 gfs2_log_unlock(sdp);
@@ -130,11 +125,6 @@ static int gfs2_ail1_empty_one(struct gfs2_sbd *sdp, struct gfs2_ail *ai, int fl
130 bd_ail_st_list) { 125 bd_ail_st_list) {
131 bh = bd->bd_bh; 126 bh = bd->bd_bh;
132 127
133 if (!bh){
134 list_move(&bd->bd_ail_st_list, &ai->ai_ail2_list);
135 continue;
136 }
137
138 gfs2_assert(sdp, bd->bd_ail == ai); 128 gfs2_assert(sdp, bd->bd_ail == ai);
139 129
140 if (buffer_busy(bh)) { 130 if (buffer_busy(bh)) {
@@ -155,13 +145,14 @@ static int gfs2_ail1_empty_one(struct gfs2_sbd *sdp, struct gfs2_ail *ai, int fl
155 145
156static void gfs2_ail1_start(struct gfs2_sbd *sdp, int flags) 146static void gfs2_ail1_start(struct gfs2_sbd *sdp, int flags)
157{ 147{
158 struct list_head *head = &sdp->sd_ail1_list; 148 struct list_head *head;
159 u64 sync_gen; 149 u64 sync_gen;
160 struct list_head *first; 150 struct list_head *first;
161 struct gfs2_ail *first_ai, *ai, *tmp; 151 struct gfs2_ail *first_ai, *ai, *tmp;
162 int done = 0; 152 int done = 0;
163 153
164 gfs2_log_lock(sdp); 154 gfs2_log_lock(sdp);
155 head = &sdp->sd_ail1_list;
165 if (list_empty(head)) { 156 if (list_empty(head)) {
166 gfs2_log_unlock(sdp); 157 gfs2_log_unlock(sdp);
167 return; 158 return;