[PATCH v10 2/12] xfs: Add support FALLOC_FL_INSERT_RANGE for fallocate

2015-02-21 Thread Namjae Jeon
From: Namjae Jeon This patch implements fallocate's FALLOC_FL_INSERT_RANGE for XFS. 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 star

[PATCH v10 2/12] xfs: Add support FALLOC_FL_INSERT_RANGE for fallocate

2015-02-17 Thread Namjae Jeon
This patch implements fallocate's FALLOC_FL_INSERT_RANGE for XFS. 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 ex