diff options
Diffstat (limited to 'fs/nilfs2/segment.c')
-rw-r--r-- | fs/nilfs2/segment.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nilfs2/segment.c b/fs/nilfs2/segment.c index 8a2b428b1838..186cabbe54d7 100644 --- a/fs/nilfs2/segment.c +++ b/fs/nilfs2/segment.c | |||
@@ -957,8 +957,8 @@ static int nilfs_segctor_apply_buffers(struct nilfs_sc_info *sci, | |||
957 | 957 | ||
958 | dispose_buffers: | 958 | dispose_buffers: |
959 | while (!list_empty(listp)) { | 959 | while (!list_empty(listp)) { |
960 | bh = list_entry(listp->next, struct buffer_head, | 960 | bh = list_first_entry(listp, struct buffer_head, |
961 | b_assoc_buffers); | 961 | b_assoc_buffers); |
962 | list_del_init(&bh->b_assoc_buffers); | 962 | list_del_init(&bh->b_assoc_buffers); |
963 | brelse(bh); | 963 | brelse(bh); |
964 | } | 964 | } |