On Thu, Dec 19, 2013 at 08:20:49AM -0700, Matthew Wilcox wrote: > We could have ext4_get_xip_mem() check buffer_unwritten(); if it's set, > zero the blocks and call ext4_convert_unwritten_extents(). Would that > work? That would work, but we'd be doing a double write to each data block --- first writing all zero's, and then later, writing the actual data. So this would halve our write bandwidth, and double the write wear on the device. And of course, if we did this on the read path, we'd be unnecessarily doing an extent conversion. Regards, - Ted -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html