On Mon, Apr 27, 2009 at 04:04:54PM -0700, Mingming Cao wrote: ..... > > Index: linux-2.6.28-rc6/fs/ext4/inode.c > =================================================================== > --- linux-2.6.28-rc6.orig/fs/ext4/inode.c 2009-03-12 10:21:05.000000000 -0700 > +++ linux-2.6.28-rc6/fs/ext4/inode.c 2009-04-27 14:35:21.000000000 -0700 > @@ -2177,7 +2177,10 @@ static int ext4_da_get_block_prep(struct > set_buffer_new(bh_result); > set_buffer_delay(bh_result); > } else if (ret > 0) { > + if (buffer_unwritten(bh_result)) > + set_buffer_new(bh_result); > bh_result->b_size = (ret << inode->i_blkbits); > + bh_result->b_bdev = inode->i_sb->s_bdev; Updated patch to set bh_result->b_dev. I also added comments in the source to explain whey we need to mark buffer_head new. Also updated single line patch summary. I will send the update (-v2) patch. -aneesh -- 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