RE: [PATCH v2 2/10] xfs: Add support FALLOC_FL_INSERT_RANGE for fallocate

2014-05-12 Thread Namjae Jeon
> > On Mon, May 12, 2014 at 06:42:37PM +0900, Namjae Jeon wrote: > > > > > > +xfs_bmap_split_extent( > > > > + struct xfs_inode*ip, > > > > + xfs_fileoff_t split_fsb, > > > > + xfs_extnum_t*split_ext) > > > > +{ > > > > + struct xfs_mount

Re: [PATCH v2 2/10] xfs: Add support FALLOC_FL_INSERT_RANGE for fallocate

2014-05-12 Thread Brian Foster
On Mon, May 12, 2014 at 06:42:37PM +0900, Namjae Jeon wrote: > > > > +xfs_bmap_split_extent( > > > + struct xfs_inode*ip, > > > + xfs_fileoff_t split_fsb, > > > + xfs_extnum_t*split_ext) > > > +{ > > > + struct xfs_mount*mp = ip->i_mount; > > > + struct

RE: [PATCH v2 2/10] xfs: Add support FALLOC_FL_INSERT_RANGE for fallocate

2014-05-12 Thread Namjae Jeon
> > +xfs_bmap_split_extent( > > + struct xfs_inode*ip, > > + xfs_fileoff_t split_fsb, > > + xfs_extnum_t*split_ext) > > +{ > > + struct xfs_mount*mp = ip->i_mount; > > + struct xfs_trans*tp; > > + struct xfs_bmap_freefree_list; > > +

RE: [PATCH v2 2/10] xfs: Add support FALLOC_FL_INSERT_RANGE for fallocate

2014-05-12 Thread Namjae Jeon
+xfs_bmap_split_extent( + struct xfs_inode*ip, + xfs_fileoff_t split_fsb, + xfs_extnum_t*split_ext) +{ + struct xfs_mount*mp = ip-i_mount; + struct xfs_trans*tp; + struct xfs_bmap_freefree_list; + xfs_fsblock_t

Re: [PATCH v2 2/10] xfs: Add support FALLOC_FL_INSERT_RANGE for fallocate

2014-05-12 Thread Brian Foster
On Mon, May 12, 2014 at 06:42:37PM +0900, Namjae Jeon wrote: +xfs_bmap_split_extent( + struct xfs_inode*ip, + xfs_fileoff_t split_fsb, + xfs_extnum_t*split_ext) +{ + struct xfs_mount*mp = ip-i_mount; + struct xfs_trans*tp; +

RE: [PATCH v2 2/10] xfs: Add support FALLOC_FL_INSERT_RANGE for fallocate

2014-05-12 Thread Namjae Jeon
On Mon, May 12, 2014 at 06:42:37PM +0900, Namjae Jeon wrote: +xfs_bmap_split_extent( + struct xfs_inode*ip, + xfs_fileoff_t split_fsb, + xfs_extnum_t*split_ext) +{ + struct xfs_mount*mp = ip-i_mount; +

Re: [PATCH v2 2/10] xfs: Add support FALLOC_FL_INSERT_RANGE for fallocate

2014-05-09 Thread Brian Foster
On Thu, May 08, 2014 at 07:26:16PM +0900, Namjae Jeon wrote: > 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

Re: [PATCH v2 2/10] xfs: Add support FALLOC_FL_INSERT_RANGE for fallocate

2014-05-09 Thread Brian Foster
On Thu, May 08, 2014 at 07:26:16PM +0900, Namjae Jeon wrote: 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.

[PATCH v2 2/10] xfs: Add support FALLOC_FL_INSERT_RANGE for fallocate

2014-05-08 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

[PATCH v2 2/10] xfs: Add support FALLOC_FL_INSERT_RANGE for fallocate

2014-05-08 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