[PATCH] use list_add_tail in buffer_insert_list

From: Christoph Hellwig
Date: Mon Aug 25 2003 - 09:04:01 EST


This is a really old patch from the XFS tree.

We need to call list_add_tail in buffer_insert_list to preserve buffer
ordering. This essential for a good extent layout with XFS's delayed
allocation and a while ago the reiserfs group requested the same change.

ACKed by sct.


--- 1.77/fs/buffer.c Sun Aug 3 16:49:59 2003
+++ edited/fs/buffer.c Tue Aug 5 01:42:38 2003
@@ -619,7 +655,7 @@
if (buffer_attached(bh))
list_del(&bh->b_inode_buffers);
set_buffer_attached(bh);
- list_add(&bh->b_inode_buffers, list);
+ list_add_tail(&bh->b_inode_buffers, list);
spin_unlock(&lru_list_lock);
}

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/