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

2014-11-23 Thread 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) Update the i_size of inode by len bytes. 3) Compute the file's logical block number against offset. If the computed block number is not the starting block of the

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

2014-11-23 Thread 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) Update the i_size of inode by len bytes. 3) Compute the file's logical block number against offset. If the computed block number is not the starting block of the