lkml.org 
[lkml]   [2003]   [Aug]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] use list_add_tail in buffer_insert_list
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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:48    [W:0.029 / U:1.512 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site