On Fri, Aug 15, 2008 at 10:01:12PM +0530, Aneesh Kumar K.V wrote: > diff --git a/fs/fs-writeback.c b/fs/fs-writeback.c > index 25adfc3..a658690 100644 > --- a/fs/fs-writeback.c > +++ b/fs/fs-writeback.c > @@ -163,7 +163,9 @@ void __mark_inode_dirty(struct inode *inode, int flags) > */ > if (!was_dirty) { > inode->dirtied_when = jiffies; > - list_move(&inode->i_list, &sb->s_dirty); > + //list_move(&inode->i_list, &sb->s_dirty); > + __list_del(&inode->i_list->prev, &inode->i_list->next); > + list_add_tail(&inode->i_list, &sb->s_dirty); > } > } > out: better one diff --git a/fs/fs-writeback.c b/fs/fs-writeback.c index 25adfc3..91f3c54 100644 --- a/fs/fs-writeback.c +++ b/fs/fs-writeback.c @@ -163,7 +163,7 @@ void __mark_inode_dirty(struct inode *inode, int flags) */ if (!was_dirty) { inode->dirtied_when = jiffies; - list_move(&inode->i_list, &sb->s_dirty); + list_move_tail(&inode->i_list, &sb->s_dirty); } } out: -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html