[PATCH 3/3] ext4: Add support FALLOC_FL_INSERT_RANGE for fallocate

2014-03-31 Thread Namjae Jeon
From: Namjae Jeon This patch implements fallocate's FALLOC_FL_INSERT_RANGE for Ext4. 1) Make sure that both offset and len are block size aligned. 2) Compute the file's logical block number against offset. If the computed block number is not the starting block of the extent, split the

[PATCH 3/3] ext4: Add support FALLOC_FL_INSERT_RANGE for fallocate

2014-03-31 Thread Namjae Jeon
From: Namjae Jeon namjae.j...@samsung.com This patch implements fallocate's FALLOC_FL_INSERT_RANGE for Ext4. 1) Make sure that both offset and len are block size aligned. 2) Compute the file's logical block number against offset. If the computed block number is not the starting block of the