public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] use list_add_tail in buffer_insert_list
@ 2003-08-25 14:01 Christoph Hellwig
  0 siblings, 0 replies; only message in thread
From: Christoph Hellwig @ 2003-08-25 14:01 UTC (permalink / raw)
  To: marcelo; +Cc: linux-kernel

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);
 }
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-08-25 14:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-25 14:01 [PATCH] use list_add_tail in buffer_insert_list Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox