On Sun, May 13, 2012 at 02:26:40PM -0700, Hugh Dickins wrote: > In looking through hole-punching implementations, I got the impression > that perhaps ext4 and ocfs2 might need to inode_dio_wait() before they > truncate pagecache. And that might require ext4 to hold i_mutex there? Anything freeing blocks should be protected by inode_dio_wait, and any call to it needs i_mutex or equivalent protection against starting new direct I/O. -- 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