Hi all, In this patch set, punching hole feature is improved. The improvements are as below. - add block-based file punching hole support - add tracepoint in punching hole In patch 1, it introduces punching hole feature for block-based file. In patch 2, we check FALLOC_FL_PUNCH_HOLE flag firstly in ext4_fallocate to fully enable punching hole feature for extent-based file and block-based file. In patch 3, a tracepoint is added in ext4_punch_hole. Any comments or feedbacks are appreciated. Thanks! v2 <- v1: * Rework patch 1. Now it looks very simple and straightforward. BTW, after applying this patch set, xfstest #255 will not pass w/o extent because block-based file doesn't support unwritten extents. Regards, - Zheng --- Zheng Liu(3) ext4: add indirect punching hole support ext4: let us fully support punching hole feature in fallocate ext4: add tracepoint for punching hole fs/ext4/ext4.h | 1 + fs/ext4/extents.c | 14 ++++----- fs/ext4/indirect.c | 244 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ fs/ext4/inode.c | 8 ++--- include/trace/events/ext4.h | 25 +++++++++++++++ 5 files changed, 281 insertions(+), 11 deletions(-) -- 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