diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2006-08-22 11:03:57 -0400 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-08-22 11:03:57 -0400 |
commit | 08867605e1d5f575685aa2b5bf575aba3d996758 (patch) | |
tree | 04e7903b18d11f5e0240d302c55322c36d561324 | |
parent | a345da3e8f28ff69e1b14df78f7ddc6e7b78b726 (diff) |
[GFS2] Fix to list_del in lops.c
A list_del should have been a list_del_init in lops.c which was
resulting in incorrect status returns from list_empty().
Signed-off-by: Steven Whitheouse <swhiteho@redhat.com>
-rw-r--r-- | fs/gfs2/lops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/lops.c b/fs/gfs2/lops.c index 04bceb75ff23..82dfc96c4f59 100644 --- a/fs/gfs2/lops.c +++ b/fs/gfs2/lops.c | |||
@@ -638,7 +638,7 @@ static void databuf_lo_before_commit(struct gfs2_sbd *sdp) | |||
638 | gfs2_log_lock(sdp); | 638 | gfs2_log_lock(sdp); |
639 | bd1 = list_entry(started.next, struct gfs2_bufdata, | 639 | bd1 = list_entry(started.next, struct gfs2_bufdata, |
640 | bd_le.le_list); | 640 | bd_le.le_list); |
641 | list_del(&bd1->bd_le.le_list); | 641 | list_del_init(&bd1->bd_le.le_list); |
642 | sdp->sd_log_num_databuf--; | 642 | sdp->sd_log_num_databuf--; |
643 | bh = bd1->bd_bh; | 643 | bh = bd1->bd_bh; |
644 | if (bh) { | 644 | if (bh) { |