[PATCH v2 10/10] xfstests: fsx: Add fallocate insert range operation

2014-05-08 Thread Namjae Jeon
This commit adds fallocate FALLOC_FL_INSERT_RANGE support for fsx. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan --- ltp/fsx.c | 96 +-- 1 file changed, 94 insertions(+), 2 deletions(-) diff --git a/ltp/fsx.c b/ltp/fsx.c

[PATCH v2 9/9] xfstests: fsstress: Add fallocate insert range

2014-05-08 Thread Namjae Jeon
This commit adds insert operation support for fsstress, which is meant to exercise fallocate FALLOC_FL_INSERT_RANGE support. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan --- ltp/fsstress.c | 19 --- src/global.h | 4 2 files changed, 20 insertions(+), 3

[PATCH v2 8/10] xfstests: generic/030: Delayed allocation multi insert

2014-05-08 Thread Namjae Jeon
This testcase(030) tries to test various corner cases with delayed extents and pre-existing holes for finsert range functionality over different type of extents. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan --- tests/generic/030 | 65

[PATCH v2 7/10] xfstests: generic/029: Multi insert range tests

2014-05-08 Thread Namjae Jeon
This testcase(029) tries to test various corner cases with pre-existing holes for finsert range functionality over different type of extents. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan --- tests/generic/029 | 65 +++ tests

[PATCH v2 6/10] xfstests: generic/028: Delayed allocation insert range

2014-05-08 Thread Namjae Jeon
This testcase(028) tries to test various corner cases with delayed extents for finsert range functionality over different type of extents. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan --- tests/generic/028 | 65 ++ tests/generic

[PATCH v2 5/10] xfstests: generic/027: Standard insert range tests

2014-05-08 Thread Namjae Jeon
This testcase(027) tries to test various corner cases for finsert range functionality over different type of extents. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan --- common/punch | 5 common/rc | 2 +- tests/generic/027 | 65

[PATCH v2 4/10] xfsprogs: xfs_io: add finsert command for insert range via fallocate

2014-05-08 Thread Namjae Jeon
Add finsert command for fallocate FALLOC_FL_INSERT_RANGE flag. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan --- io/prealloc.c | 39 ++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/io/prealloc.c b/io/prealloc.c index aba6b44

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

2014-05-08 Thread Namjae Jeon
created in step 4. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan --- fs/ext4/ext4.h | 1 + fs/ext4/extents.c | 333 ++-- include/trace/events/ext4.h | 25 3 files changed, 350 insertions(+), 9 deletions(-) diff

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

2014-05-08 Thread Namjae Jeon
created in step 4. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan --- fs/xfs/xfs_bmap.c | 372 - fs/xfs/xfs_bmap.h | 9 +- fs/xfs/xfs_bmap_util.c | 129 - fs/xfs/xfs_bmap_util.h | 2 + fs/xfs/xfs_file.c

[PATCH v2 1/10] fs: Add support FALLOC_FL_INSERT_RANGE for fallocate

2014-05-08 Thread Namjae Jeon
has same limitation as FALLOC_FL_COLLAPSE_RANGE, block boundary and use ftruncate(2) for crosses EOF. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan --- fs/open.c | 8 +++- include/uapi/linux/falloc.h | 17 + 2 files changed, 24 insertions(+), 1

[PATCH v2 0/10] fs: Introduce FALLOC_FL_INSERT_RANGE for fallocate

2014-05-08 Thread Namjae Jeon
) or fallocate(2) with mode 0. 5) It increses the size of file by len bytes. Namjae Jeon (10): fs: Add support FALLOC_FL_INSERT_RANGE for fallocate xfs: Add support FALLOC_FL_INSERT_RANGE for fallocate ext4: Add support FALLOC_FL_INSERT_RANGE for fallocate xfsprogs: xfs_io: add finsert command

[PATCH v2 0/10] fs: Introduce FALLOC_FL_INSERT_RANGE for fallocate

2014-05-08 Thread Namjae Jeon
) or fallocate(2) with mode 0. 5) It increses the size of file by len bytes. Namjae Jeon (10): fs: Add support FALLOC_FL_INSERT_RANGE for fallocate xfs: Add support FALLOC_FL_INSERT_RANGE for fallocate ext4: Add support FALLOC_FL_INSERT_RANGE for fallocate xfsprogs: xfs_io: add finsert command

[PATCH v2 1/10] fs: Add support FALLOC_FL_INSERT_RANGE for fallocate

2014-05-08 Thread Namjae Jeon
has same limitation as FALLOC_FL_COLLAPSE_RANGE, block boundary and use ftruncate(2) for crosses EOF. Signed-off-by: Namjae Jeon namjae.j...@samsung.com Signed-off-by: Ashish Sangwan a.sang...@samsung.com --- fs/open.c | 8 +++- include/uapi/linux/falloc.h | 17

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

2014-05-08 Thread Namjae Jeon
created in step 4. Signed-off-by: Namjae Jeon namjae.j...@samsung.com Signed-off-by: Ashish Sangwan a.sang...@samsung.com --- fs/xfs/xfs_bmap.c | 372 - fs/xfs/xfs_bmap.h | 9 +- fs/xfs/xfs_bmap_util.c | 129 - fs/xfs

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

2014-05-08 Thread Namjae Jeon
created in step 4. Signed-off-by: Namjae Jeon namjae.j...@samsung.com Signed-off-by: Ashish Sangwan a.sang...@samsung.com --- fs/ext4/ext4.h | 1 + fs/ext4/extents.c | 333 ++-- include/trace/events/ext4.h | 25 3 files

[PATCH v2 4/10] xfsprogs: xfs_io: add finsert command for insert range via fallocate

2014-05-08 Thread Namjae Jeon
Add finsert command for fallocate FALLOC_FL_INSERT_RANGE flag. Signed-off-by: Namjae Jeon namjae.j...@samsung.com Signed-off-by: Ashish Sangwan a.sang...@samsung.com --- io/prealloc.c | 39 ++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/io

[PATCH v2 5/10] xfstests: generic/027: Standard insert range tests

2014-05-08 Thread Namjae Jeon
This testcase(027) tries to test various corner cases for finsert range functionality over different type of extents. Signed-off-by: Namjae Jeon namjae.j...@samsung.com Signed-off-by: Ashish Sangwan a.sang...@samsung.com --- common/punch | 5 common/rc | 2 +- tests

[PATCH v2 6/10] xfstests: generic/028: Delayed allocation insert range

2014-05-08 Thread Namjae Jeon
This testcase(028) tries to test various corner cases with delayed extents for finsert range functionality over different type of extents. Signed-off-by: Namjae Jeon namjae.j...@samsung.com Signed-off-by: Ashish Sangwan a.sang...@samsung.com --- tests/generic/028 | 65

[PATCH v2 7/10] xfstests: generic/029: Multi insert range tests

2014-05-08 Thread Namjae Jeon
This testcase(029) tries to test various corner cases with pre-existing holes for finsert range functionality over different type of extents. Signed-off-by: Namjae Jeon namjae.j...@samsung.com Signed-off-by: Ashish Sangwan a.sang...@samsung.com --- tests/generic/029 | 65

[PATCH v2 8/10] xfstests: generic/030: Delayed allocation multi insert

2014-05-08 Thread Namjae Jeon
This testcase(030) tries to test various corner cases with delayed extents and pre-existing holes for finsert range functionality over different type of extents. Signed-off-by: Namjae Jeon namjae.j...@samsung.com Signed-off-by: Ashish Sangwan a.sang...@samsung.com --- tests/generic/030 | 65

[PATCH v2 9/9] xfstests: fsstress: Add fallocate insert range

2014-05-08 Thread Namjae Jeon
This commit adds insert operation support for fsstress, which is meant to exercise fallocate FALLOC_FL_INSERT_RANGE support. Signed-off-by: Namjae Jeon namjae.j...@samsung.com Signed-off-by: Ashish Sangwan a.sang...@samsung.com --- ltp/fsstress.c | 19 --- src/global.h | 4

[PATCH v2 10/10] xfstests: fsx: Add fallocate insert range operation

2014-05-08 Thread Namjae Jeon
This commit adds fallocate FALLOC_FL_INSERT_RANGE support for fsx. Signed-off-by: Namjae Jeon namjae.j...@samsung.com Signed-off-by: Ashish Sangwan a.sang...@samsung.com --- ltp/fsx.c | 96 +-- 1 file changed, 94 insertions(+), 2

Re: [PATCH 0/3] fs: Introduce FALLOC_FL_INSERT_RANGE for fallocate

2014-04-08 Thread Namjae Jeon
2014-04-08 9:54 GMT+09:00, Dave Chinner : > On Mon, Mar 31, 2014 at 11:53:31PM +0900, Namjae Jeon wrote: >> From: Namjae Jeon >> >> FALLOC_FL_INSERT_RANGE was mentioned as the opposite command of collapse >> range from discussion between Hugh Dickins and Dave Chi

Re: [PATCH 0/3] fs: Introduce FALLOC_FL_INSERT_RANGE for fallocate

2014-04-08 Thread Namjae Jeon
2014-04-08 9:54 GMT+09:00, Dave Chinner da...@fromorbit.com: On Mon, Mar 31, 2014 at 11:53:31PM +0900, Namjae Jeon wrote: From: Namjae Jeon namjae.j...@samsung.com FALLOC_FL_INSERT_RANGE was mentioned as the opposite command of collapse range from discussion between Hugh Dickins and Dave

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

2014-04-07 Thread Namjae Jeon
>> + >> +int >> +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_free

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

2014-04-07 Thread Namjae Jeon
+ +int +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 0/3] fs: Introduce FALLOC_FL_INSERT_RANGE for fallocate

2014-03-31 Thread Namjae Jeon
2014-03-31 23:56 GMT+09:00 Christoph Hellwig : > On Mon, Mar 31, 2014 at 11:53:31PM +0900, Namjae Jeon wrote: >> This flag will work opposite to the newly added FALLOC_FL_COLLAPSE_RANGE >> flag. >> As such, specifying FALLOC_FL_INSERT_RANGE flag will insert zeroed-out space &

[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

[PATCH 2/3] xfs: 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 XFS. 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 extent

[PATCH 1/3] fs: Add FALLOC_FL_INSERT_RANGE flags for fallocate

2014-03-31 Thread Namjae Jeon
From: Namjae Jeon FALLOC_FL_INSERT_RANGE command is the opposite command of FALLOC_FL_COLLAPSE_RANGE that is needed for advertisers or someone who want to add some data in the middle of file. FALLOC_FL_INSERT_RANGE will insert a range of a file after shifting extents to right as given length

[PATCH 0/3] fs: Introduce FALLOC_FL_INSERT_RANGE for fallocate

2014-03-31 Thread Namjae Jeon
From: Namjae Jeon FALLOC_FL_INSERT_RANGE was mentioned as the opposite command of collapse range from discussion between Hugh Dickins and Dave Chinner. In continuation of the work of making the process of non linear editing of media files faster, we introduce here the new flag

[PATCH 1/3] fs: Add FALLOC_FL_INSERT_RANGE flags for fallocate

2014-03-31 Thread Namjae Jeon
From: Namjae Jeon namjae.j...@samsung.com FALLOC_FL_INSERT_RANGE command is the opposite command of FALLOC_FL_COLLAPSE_RANGE that is needed for advertisers or someone who want to add some data in the middle of file. FALLOC_FL_INSERT_RANGE will insert a range of a file after shifting extents

[PATCH 0/3] fs: Introduce FALLOC_FL_INSERT_RANGE for fallocate

2014-03-31 Thread Namjae Jeon
From: Namjae Jeon namjae.j...@samsung.com FALLOC_FL_INSERT_RANGE was mentioned as the opposite command of collapse range from discussion between Hugh Dickins and Dave Chinner. In continuation of the work of making the process of non linear editing of media files faster, we introduce here the new

[PATCH 2/3] xfs: 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 XFS. 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

[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

Re: [PATCH 0/3] fs: Introduce FALLOC_FL_INSERT_RANGE for fallocate

2014-03-31 Thread Namjae Jeon
2014-03-31 23:56 GMT+09:00 Christoph Hellwig h...@infradead.org: On Mon, Mar 31, 2014 at 11:53:31PM +0900, Namjae Jeon wrote: This flag will work opposite to the newly added FALLOC_FL_COLLAPSE_RANGE flag. As such, specifying FALLOC_FL_INSERT_RANGE flag will insert zeroed-out space in between

Re: [PATCH v4 3/6] fat: zero out seek range on _fat_get_block

2014-03-19 Thread Namjae Jeon
2014-03-18 23:59 GMT+09:00, OGAWA Hirofumi : > Namjae Jeon writes: > >> +static void check_fallocated_region(struct inode *inode, sector_t >> iblock, >> +unsigned long *max_blocks, struct buffer_head *bh_result) >> +{ >> +struct super_block

Re: [PATCH v4 3/6] fat: zero out seek range on _fat_get_block

2014-03-19 Thread Namjae Jeon
2014-03-18 23:59 GMT+09:00, OGAWA Hirofumi hirof...@mail.parknet.co.jp: Namjae Jeon linkinj...@gmail.com writes: +static void check_fallocated_region(struct inode *inode, sector_t iblock, +unsigned long *max_blocks, struct buffer_head *bh_result) +{ +struct super_block *sb

[PATCH v7] ext4: Add support FALLOC_FL_COLLAPSE_RANGE for fallocate

2014-03-02 Thread Namjae Jeon
From: Namjae Jeon This patch implements fallocate's FALLOC_FL_COLLAPSE_RANGE for Ext4. The semantics of this flag are following: 1) It collapses the range lying between offset and length by removing any data blocks which are present in this range and than updates all the logical offsets

[PATCH v4 1/6] fat: add i_disksize to represent uninitialized size

2014-03-02 Thread Namjae Jeon
From: Namjae Jeon Add i_disksize to represent uninitialized allocated size. And mmu_private represent initialized allocated size. Signed-off-by: Namjae Jeon Signed-off-by: Amit Sahrawat --- fs/fat/cache.c | 6 +++--- fs/fat/fat.h | 3 ++- fs/fat/file.c | 4 +++- fs/fat/inode.c | 9

[PATCH v4 2/6] fat: add fat_fallocate operation

2014-03-02 Thread Namjae Jeon
From: Namjae Jeon Implement preallocation via the fallocate syscall on VFAT partitions. This patch is based on an earlier patch of the same name which had some issues detailed below and did not get accepted. Refer https://lkml.org/lkml/2007/12/22/130. a) The preallocated space

[PATCH v4 6/6] Documentation/filesystems/vfat.txt: update the limitation for fat fallocate

2014-03-02 Thread Namjae Jeon
From: Namjae Jeon Update the limitation for fat fallocate. Signed-off-by: Namjae Jeon Signed-off-by: Amit Sahrawat --- Documentation/filesystems/vfat.txt | 10 ++ 1 file changed, 10 insertions(+) diff --git a/Documentation/filesystems/vfat.txt b/Documentation/filesystems/vfat.txt

[PATCH v4 4/6] fat: fallback to buffered write in case of fallocated region on direct IO

2014-03-02 Thread Namjae Jeon
From: Namjae Jeon For normal cases of direct IO write, trying to seek to location greater than file size, makes it fall back to buffered write to fill that region. Similarly, in case for write in Fallocated region, make it fall to buffered write. Signed-off-by: Namjae Jeon Signed-off-by: Amit

[PATCH v4 5/6] fat: permit to return phy block number by fibmap in fallocated region

2014-03-02 Thread Namjae Jeon
From: Namjae Jeon Make the fibmap call the return the proper physical block number for any offset request in the fallocated range. Signed-off-by: Namjae Jeon Signed-off-by: Amit Sahrawat --- fs/fat/cache.c | 64 ++ fs/fat/fat.h | 3

[PATCH v4 3/6] fat: zero out seek range on _fat_get_block

2014-03-02 Thread Namjae Jeon
From: Namjae Jeon For normal buffered write operations, normally if we try to write to an offset > than file size, it does a cont_expand_zero till that offset. Now, in case of fallocated regions, since the blocks are already allocated. So, make it zero out that buffers for those blocks t

[PATCH v4 0/6] fat: additions to support fat_fallocate

2014-03-02 Thread Namjae Jeon
From: Namjae Jeon This patch set provides support for doing fallocate operation on FAT filesystem. After series of review for the the feature The complete functionality is broken down into smaller subsets. v4: - ->i_disksize is aligned by block size in fill_inode. - use i_disksize w

[PATCH v4 0/6] fat: additions to support fat_fallocate

2014-03-02 Thread Namjae Jeon
From: Namjae Jeon namjae.j...@samsung.com This patch set provides support for doing fallocate operation on FAT filesystem. After series of review for the the feature The complete functionality is broken down into smaller subsets. v4: - -i_disksize is aligned by block size in fill_inode. - use

[PATCH v4 3/6] fat: zero out seek range on _fat_get_block

2014-03-02 Thread Namjae Jeon
From: Namjae Jeon namjae.j...@samsung.com For normal buffered write operations, normally if we try to write to an offset than file size, it does a cont_expand_zero till that offset. Now, in case of fallocated regions, since the blocks are already allocated. So, make it zero out that buffers

[PATCH v4 5/6] fat: permit to return phy block number by fibmap in fallocated region

2014-03-02 Thread Namjae Jeon
From: Namjae Jeon namjae.j...@samsung.com Make the fibmap call the return the proper physical block number for any offset request in the fallocated range. Signed-off-by: Namjae Jeon namjae.j...@samsung.com Signed-off-by: Amit Sahrawat a.sahra...@samsung.com --- fs/fat/cache.c | 64

[PATCH v4 6/6] Documentation/filesystems/vfat.txt: update the limitation for fat fallocate

2014-03-02 Thread Namjae Jeon
From: Namjae Jeon namjae.j...@samsung.com Update the limitation for fat fallocate. Signed-off-by: Namjae Jeon namjae.j...@samsung.com Signed-off-by: Amit Sahrawat a.sahra...@samsung.com --- Documentation/filesystems/vfat.txt | 10 ++ 1 file changed, 10 insertions(+) diff --git

[PATCH v4 4/6] fat: fallback to buffered write in case of fallocated region on direct IO

2014-03-02 Thread Namjae Jeon
From: Namjae Jeon namjae.j...@samsung.com For normal cases of direct IO write, trying to seek to location greater than file size, makes it fall back to buffered write to fill that region. Similarly, in case for write in Fallocated region, make it fall to buffered write. Signed-off-by: Namjae

[PATCH v4 2/6] fat: add fat_fallocate operation

2014-03-02 Thread Namjae Jeon
From: Namjae Jeon namjae.j...@samsung.com Implement preallocation via the fallocate syscall on VFAT partitions. This patch is based on an earlier patch of the same name which had some issues detailed below and did not get accepted. Refer https://lkml.org/lkml/2007/12/22/130. a) The preallocated

[PATCH v4 1/6] fat: add i_disksize to represent uninitialized size

2014-03-02 Thread Namjae Jeon
From: Namjae Jeon namjae.j...@samsung.com Add i_disksize to represent uninitialized allocated size. And mmu_private represent initialized allocated size. Signed-off-by: Namjae Jeon namjae.j...@samsung.com Signed-off-by: Amit Sahrawat a.sahra...@samsung.com --- fs/fat/cache.c | 6 +++--- fs/fat

[PATCH v7] ext4: Add support FALLOC_FL_COLLAPSE_RANGE for fallocate

2014-03-02 Thread Namjae Jeon
From: Namjae Jeon namjae.j...@samsung.com This patch implements fallocate's FALLOC_FL_COLLAPSE_RANGE for Ext4. The semantics of this flag are following: 1) It collapses the range lying between offset and length by removing any data blocks which are present in this range and than updates all

Re: [PATCH v6] ext4: Add support FALLOC_FL_COLLAPSE_RANGE for fallocate

2014-02-26 Thread Namjae Jeon
2014-02-27 1:48 GMT+09:00, Theodore Ts'o : > On Mon, Feb 24, 2014 at 10:22:10AM +0900, Namjae Jeon wrote: >> >> + ret = ext4_es_remove_extent(inode, punch_start, >> >> + EXT_MAX_BLOCKS - punch_start - 1); >> >> + if (ret) { >>

Re: [PATCH v6] ext4: Add support FALLOC_FL_COLLAPSE_RANGE for fallocate

2014-02-26 Thread Namjae Jeon
2014-02-27 1:48 GMT+09:00, Theodore Ts'o ty...@mit.edu: On Mon, Feb 24, 2014 at 10:22:10AM +0900, Namjae Jeon wrote: + ret = ext4_es_remove_extent(inode, punch_start, + EXT_MAX_BLOCKS - punch_start - 1); + if (ret) { + up_write(EXT4_I(inode)-i_data_sem

Re: [PATCH v5 0/10] fs: Introduce new flag(FALLOC_FL_COLLAPSE_RANGE) for fallocate

2014-02-23 Thread Namjae Jeon
2014-02-24 9:57 GMT+09:00, Dave Chinner : > On Wed, Feb 19, 2014 at 01:37:16AM +0900, Namjae Jeon wrote: >> From: Namjae Jeon >> >> This patch series is in response of the following post: >> http://lwn.net/Articles/556136/ >> "ext4: introduce two ne

Re: [PATCH v6] ext4: Add support FALLOC_FL_COLLAPSE_RANGE for fallocate

2014-02-23 Thread Namjae Jeon
2014-02-23 2:09 GMT+09:00, Theodore Ts'o : > On Fri, Feb 21, 2014 at 12:07:41AM +0900, Namjae Jeon wrote: >> From: Namjae Jeon >> >> This patch implements fallocate's FALLOC_FL_COLLAPSE_RANGE for Ext4. >> >> The semantics of this flag are following: >>

Re: [PATCH v5 2/10] xfs: Add support FALLOC_FL_COLLAPSE_RANGE for fallocate

2014-02-23 Thread Namjae Jeon
2014-02-24 6:22 GMT+09:00, Dave Chinner : > On Wed, Feb 19, 2014 at 01:37:55AM +0900, Namjae Jeon wrote: >> From: Namjae Jeon >> >> This patch implements fallocate's FALLOC_FL_COLLAPSE_RANGE for XFS. >> >> The semantics of this flag are following: >> 1) It c

Re: [PATCH v5 2/10] xfs: Add support FALLOC_FL_COLLAPSE_RANGE for fallocate

2014-02-23 Thread Namjae Jeon
2014-02-24 6:22 GMT+09:00, Dave Chinner da...@fromorbit.com: On Wed, Feb 19, 2014 at 01:37:55AM +0900, Namjae Jeon wrote: From: Namjae Jeon namjae.j...@samsung.com This patch implements fallocate's FALLOC_FL_COLLAPSE_RANGE for XFS. The semantics of this flag are following: 1) It collapses

Re: [PATCH v6] ext4: Add support FALLOC_FL_COLLAPSE_RANGE for fallocate

2014-02-23 Thread Namjae Jeon
2014-02-23 2:09 GMT+09:00, Theodore Ts'o ty...@mit.edu: On Fri, Feb 21, 2014 at 12:07:41AM +0900, Namjae Jeon wrote: From: Namjae Jeon namjae.j...@samsung.com This patch implements fallocate's FALLOC_FL_COLLAPSE_RANGE for Ext4. The semantics of this flag are following: 1) It collapses

Re: [PATCH v5 0/10] fs: Introduce new flag(FALLOC_FL_COLLAPSE_RANGE) for fallocate

2014-02-23 Thread Namjae Jeon
2014-02-24 9:57 GMT+09:00, Dave Chinner da...@fromorbit.com: On Wed, Feb 19, 2014 at 01:37:16AM +0900, Namjae Jeon wrote: From: Namjae Jeon namjae.j...@samsung.com This patch series is in response of the following post: http://lwn.net/Articles/556136/ ext4: introduce two new ioctls Dave

[PATCH v6] ext4: Add support FALLOC_FL_COLLAPSE_RANGE for fallocate

2014-02-20 Thread Namjae Jeon
From: Namjae Jeon This patch implements fallocate's FALLOC_FL_COLLAPSE_RANGE for Ext4. The semantics of this flag are following: 1) It collapses the range lying between offset and length by removing any data blocks which are present in this range and than updates all the logical offsets

[PATCH v6] ext4: Add support FALLOC_FL_COLLAPSE_RANGE for fallocate

2014-02-20 Thread Namjae Jeon
From: Namjae Jeon namjae.j...@samsung.com This patch implements fallocate's FALLOC_FL_COLLAPSE_RANGE for Ext4. The semantics of this flag are following: 1) It collapses the range lying between offset and length by removing any data blocks which are present in this range and than updates all

Re: [PATCH v5 3/10] ext4: Add support FALLOC_FL_COLLAPSE_RANGE for fallocate

2014-02-19 Thread Namjae Jeon
2014-02-20 6:58 GMT+09:00, Dongsu Park : > Hi Namjae, > see below: Hi Dongsu. > > On 19.02.2014 01:38, Namjae Jeon wrote: >> This patch implements fallocate's FALLOC_FL_COLLAPSE_RANGE for Ext4. > .. >> +/* >> + * Don't start shifting extents u

Re: [PATCH v5 3/10] ext4: Add support FALLOC_FL_COLLAPSE_RANGE for fallocate

2014-02-19 Thread Namjae Jeon
2014-02-20 6:58 GMT+09:00, Dongsu Park dongsu.p...@profitbricks.com: Hi Namjae, see below: Hi Dongsu. On 19.02.2014 01:38, Namjae Jeon wrote: This patch implements fallocate's FALLOC_FL_COLLAPSE_RANGE for Ext4. ...snip... +/* + * Don't start shifting extents until we make sure

Re: [PATCH RESEND 3/10] ext4: Add support FALLOC_FL_COLLAPSE_RANGE for fallocate

2014-02-18 Thread Namjae Jeon
2014-02-18 23:30 GMT+09:00, Theodore Ts'o : > Namjae, Hi Ted. > > Did you respond to Matthew Wilcox's comments/question from Feb. 2nd? Sorry, I didn't catch about this. I just replied from Matthew's mail. Thanks for your remind. > >> > What if the file is mmaped at the time somebody issues this

Re: [PATCH RESEND 0/10] fs: Introduce new flag(FALLOC_FL_COLLAPSE_RANGE) for fallocate

2014-02-18 Thread Namjae Jeon
2014-02-03 0:21 GMT+09:00, Matthew Wilcox : > On Sun, Feb 02, 2014 at 08:16:24AM -0700, Matthew Wilcox wrote: >> On Sun, Feb 02, 2014 at 02:41:34PM +0900, Namjae Jeon wrote: >> > The semantics of this flag are following: >> > 1) It collapses the range lying between of

[PATCH v5 9/10] xfstest: shared/005: Test multiple fallocate collapse

2014-02-18 Thread Namjae Jeon
From: Namjae Jeon We execute collapse range multiple times on same file. Each collapse range call collapses a single alternate block. After the test execution, file will be left with 80 blocks and as much number of extents. We also check for file system consistency after the completion. Signed

[PATCH v5 10/10] manpage: update FALLOC_FL_COLLAPSE_RANGE flag in fallocate

2014-02-18 Thread Namjae Jeon
From: Namjae Jeon Update FALLOC_FL_COLLAPSE_RANGE flag in fallocate. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan --- man2/fallocate.2 | 21 + 1 file changed, 21 insertions(+) diff --git a/man2/fallocate.2 b/man2/fallocate.2 index b31bbde..06a0b0c 100644

[PATCH v5 7/10] xfstest: shared/003: Multi collapse range tests

2014-02-18 Thread Namjae Jeon
From: Namjae Jeon This testcase(003) tries to test various corner cases with pre-existing holes for fcollapse range functionality over different type of extents. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan --- tests/shared/003 | 65

[PATCH v5 6/10] xfstest: shared/002: Delayed allocation collapse range

2014-02-18 Thread Namjae Jeon
From: Namjae Jeon This testcase(002) tries to test various corner cases with delayed extents for fcollapse range functionality over different type of extents. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan --- tests/shared/002 | 65

[PATCH v5 8/10] xfstest: shared/004: Delayed allocation multi collapse

2014-02-18 Thread Namjae Jeon
From: Namjae Jeon This testcase(004) tries to test various corner cases with delayed extents and pre-existing holes for fcollapse range functionality over different type of extents. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan --- tests/shared/004 | 65

[PATCH v5 5/10] xfstest: shared/001: Standard collapse range tests

2014-02-18 Thread Namjae Jeon
From: Namjae Jeon This testcase(001) tries to test various corner cases for fcollapse range functionality over different type of extents. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan --- common/punch | 156 ++- common/rc

[PATCH v5 3/10] ext4: Add support FALLOC_FL_COLLAPSE_RANGE for fallocate

2014-02-18 Thread Namjae Jeon
From: Namjae Jeon This patch implements fallocate's FALLOC_FL_COLLAPSE_RANGE for Ext4. The semantics of this flag are following: 1) It collapses the range lying between offset and length by removing any data blocks which are present in this range and than updates all the logical offsets

[PATCH v5 2/10] xfs: Add support FALLOC_FL_COLLAPSE_RANGE for fallocate

2014-02-18 Thread Namjae Jeon
From: Namjae Jeon This patch implements fallocate's FALLOC_FL_COLLAPSE_RANGE for XFS. The semantics of this flag are following: 1) It collapses the range lying between offset and length by removing any data blocks which are present in this range and than updates all the logical offsets

[PATCH v5 4/10] xfsprog: xfsio: Add support FALLOC_FL_COLLAPSE_RANGE for fallocate

2014-02-18 Thread Namjae Jeon
From: Namjae Jeon Add support FALLOC_FL_COLLAPSE_RANGE for fallocate. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan Reviewed-by: Dave Chinner --- io/prealloc.c | 41 +++-- man/man8/xfs_io.8 |6 ++ 2 files changed, 45 insertions

[PATCH v5 1/10] fs: Add new flag(FALLOC_FL_COLLAPSE_RANGE) for fallocate

2014-02-18 Thread Namjae Jeon
From: Namjae Jeon This patch is in response of the following post: http://lwn.net/Articles/556136/ "ext4: introduce two new ioctls" Dave chinner suggested that truncate_block_range (which was one of the ioctls name) should be a fallocate operation and not any fs specific ioctl, he

[PATCH v5 0/10] fs: Introduce new flag(FALLOC_FL_COLLAPSE_RANGE) for fallocate

2014-02-18 Thread Namjae Jeon
From: Namjae Jeon This patch series is in response of the following post: http://lwn.net/Articles/556136/ "ext4: introduce two new ioctls" Dave chinner suggested that truncate_block_range (which was one of the ioctls name) should be an fallocate operation and not any fs specific ioctl

Re: [PATCH RESEND 3/10] ext4: Add support FALLOC_FL_COLLAPSE_RANGE for fallocate

2014-02-18 Thread Namjae Jeon
2014-02-18 18:05 GMT+09:00, Lukáš Czerner : > On Wed, 12 Feb 2014, Namjae Jeon wrote: > >> Date: Wed, 12 Feb 2014 11:28:35 +0900 >> From: Namjae Jeon >> To: Lukáš Czerner >> Cc: v...@zeniv.linux.org.uk, da...@fromorbit.com, b...@sgi.com, >> ty...@mit.edu

Re: [PATCH RESEND 3/10] ext4: Add support FALLOC_FL_COLLAPSE_RANGE for fallocate

2014-02-18 Thread Namjae Jeon
2014-02-18 18:05 GMT+09:00, Lukáš Czerner lczer...@redhat.com: On Wed, 12 Feb 2014, Namjae Jeon wrote: Date: Wed, 12 Feb 2014 11:28:35 +0900 From: Namjae Jeon linkinj...@gmail.com To: Lukáš Czerner lczer...@redhat.com Cc: v...@zeniv.linux.org.uk, da...@fromorbit.com, b...@sgi.com, ty

[PATCH v5 0/10] fs: Introduce new flag(FALLOC_FL_COLLAPSE_RANGE) for fallocate

2014-02-18 Thread Namjae Jeon
From: Namjae Jeon namjae.j...@samsung.com This patch series is in response of the following post: http://lwn.net/Articles/556136/ ext4: introduce two new ioctls Dave chinner suggested that truncate_block_range (which was one of the ioctls name) should be an fallocate operation and not any fs

[PATCH v5 1/10] fs: Add new flag(FALLOC_FL_COLLAPSE_RANGE) for fallocate

2014-02-18 Thread Namjae Jeon
From: Namjae Jeon namjae.j...@samsung.com This patch is in response of the following post: http://lwn.net/Articles/556136/ ext4: introduce two new ioctls Dave chinner suggested that truncate_block_range (which was one of the ioctls name) should be a fallocate operation and not any fs specific

[PATCH v5 4/10] xfsprog: xfsio: Add support FALLOC_FL_COLLAPSE_RANGE for fallocate

2014-02-18 Thread Namjae Jeon
From: Namjae Jeon namjae.j...@samsung.com Add support FALLOC_FL_COLLAPSE_RANGE for fallocate. Signed-off-by: Namjae Jeon namjae.j...@samsung.com Signed-off-by: Ashish Sangwan a.sang...@samsung.com Reviewed-by: Dave Chinner dchin...@redhat.com --- io/prealloc.c | 41

[PATCH v5 5/10] xfstest: shared/001: Standard collapse range tests

2014-02-18 Thread Namjae Jeon
From: Namjae Jeon namjae.j...@samsung.com This testcase(001) tries to test various corner cases for fcollapse range functionality over different type of extents. Signed-off-by: Namjae Jeon namjae.j...@samsung.com Signed-off-by: Ashish Sangwan a.sang...@samsung.com --- common/punch | 156

[PATCH v5 3/10] ext4: Add support FALLOC_FL_COLLAPSE_RANGE for fallocate

2014-02-18 Thread Namjae Jeon
From: Namjae Jeon namjae.j...@samsung.com This patch implements fallocate's FALLOC_FL_COLLAPSE_RANGE for Ext4. The semantics of this flag are following: 1) It collapses the range lying between offset and length by removing any data blocks which are present in this range and than updates all

[PATCH v5 2/10] xfs: Add support FALLOC_FL_COLLAPSE_RANGE for fallocate

2014-02-18 Thread Namjae Jeon
From: Namjae Jeon namjae.j...@samsung.com This patch implements fallocate's FALLOC_FL_COLLAPSE_RANGE for XFS. The semantics of this flag are following: 1) It collapses the range lying between offset and length by removing any data blocks which are present in this range and than updates all

[PATCH v5 8/10] xfstest: shared/004: Delayed allocation multi collapse

2014-02-18 Thread Namjae Jeon
From: Namjae Jeon namjae.j...@samsung.com This testcase(004) tries to test various corner cases with delayed extents and pre-existing holes for fcollapse range functionality over different type of extents. Signed-off-by: Namjae Jeon namjae.j...@samsung.com Signed-off-by: Ashish Sangwan a.sang

[PATCH v5 6/10] xfstest: shared/002: Delayed allocation collapse range

2014-02-18 Thread Namjae Jeon
From: Namjae Jeon namjae.j...@samsung.com This testcase(002) tries to test various corner cases with delayed extents for fcollapse range functionality over different type of extents. Signed-off-by: Namjae Jeon namjae.j...@samsung.com Signed-off-by: Ashish Sangwan a.sang...@samsung.com --- tests

[PATCH v5 7/10] xfstest: shared/003: Multi collapse range tests

2014-02-18 Thread Namjae Jeon
From: Namjae Jeon namjae.j...@samsung.com This testcase(003) tries to test various corner cases with pre-existing holes for fcollapse range functionality over different type of extents. Signed-off-by: Namjae Jeon linkinj...@gmail.com Signed-off-by: Ashish Sangwan a.sang...@samsung.com --- tests

[PATCH v5 10/10] manpage: update FALLOC_FL_COLLAPSE_RANGE flag in fallocate

2014-02-18 Thread Namjae Jeon
From: Namjae Jeon namjae.j...@samsung.com Update FALLOC_FL_COLLAPSE_RANGE flag in fallocate. Signed-off-by: Namjae Jeon namjae.j...@samsung.com Signed-off-by: Ashish Sangwan a.sang...@samsung.com --- man2/fallocate.2 | 21 + 1 file changed, 21 insertions(+) diff --git

[PATCH v5 9/10] xfstest: shared/005: Test multiple fallocate collapse

2014-02-18 Thread Namjae Jeon
From: Namjae Jeon namjae.j...@samsung.com We execute collapse range multiple times on same file. Each collapse range call collapses a single alternate block. After the test execution, file will be left with 80 blocks and as much number of extents. We also check for file system consistency after

Re: [PATCH RESEND 0/10] fs: Introduce new flag(FALLOC_FL_COLLAPSE_RANGE) for fallocate

2014-02-18 Thread Namjae Jeon
2014-02-03 0:21 GMT+09:00, Matthew Wilcox matt...@wil.cx: On Sun, Feb 02, 2014 at 08:16:24AM -0700, Matthew Wilcox wrote: On Sun, Feb 02, 2014 at 02:41:34PM +0900, Namjae Jeon wrote: The semantics of this flag are following: 1) It collapses the range lying between offset and length

Re: [PATCH RESEND 3/10] ext4: Add support FALLOC_FL_COLLAPSE_RANGE for fallocate

2014-02-18 Thread Namjae Jeon
2014-02-18 23:30 GMT+09:00, Theodore Ts'o ty...@mit.edu: Namjae, Hi Ted. Did you respond to Matthew Wilcox's comments/question from Feb. 2nd? Sorry, I didn't catch about this. I just replied from Matthew's mail. Thanks for your remind. What if the file is mmaped at the time somebody issues

Re: [PATCH v3 2/6] fat: add fat_fallocate operation

2014-02-14 Thread Namjae Jeon
2014-02-14 16:30 GMT+09:00, OGAWA Hirofumi : > Namjae Jeon writes: > >>>> [...] >>>> >>>>> + /* Release unwritten fallocated blocks on inode eviction. */ >>>>> + if (MSDOS_I(inode)->mmu_private

Re: [PATCH v3 2/6] fat: add fat_fallocate operation

2014-02-14 Thread Namjae Jeon
2014-02-14 16:30 GMT+09:00, OGAWA Hirofumi hirof...@mail.parknet.co.jp: Namjae Jeon linkinj...@gmail.com writes: [...] + /* Release unwritten fallocated blocks on inode eviction. */ + if (MSDOS_I(inode)-mmu_private MSDOS_I(inode)-i_disksize) { + int err

Re: [PATCH v3 2/6] fat: add fat_fallocate operation

2014-02-13 Thread Namjae Jeon
>> [...] >> >>> + /* Release unwritten fallocated blocks on inode eviction. */ >>> + if (MSDOS_I(inode)->mmu_private < MSDOS_I(inode)->i_disksize) { >>> + int err; >>> + fat_truncate_blocks(inode, MSDOS_I(inode)->mmu_private); >>> +

Re: [PATCH v3 2/6] fat: add fat_fallocate operation

2014-02-13 Thread Namjae Jeon
[...] + /* Release unwritten fallocated blocks on inode eviction. */ + if (MSDOS_I(inode)-mmu_private MSDOS_I(inode)-i_disksize) { + int err; + fat_truncate_blocks(inode, MSDOS_I(inode)-mmu_private); + /* Fallocate

Re: [PATCH RESEND 3/10] ext4: Add support FALLOC_FL_COLLAPSE_RANGE for fallocate

2014-02-11 Thread Namjae Jeon
2014-02-11 20:59 GMT+09:00, Lukáš Czerner : > On Sun, 2 Feb 2014, Namjae Jeon wrote: > >> Date: Sun, 2 Feb 2014 14:44:34 +0900 >> From: Namjae Jeon >> To: v...@zeniv.linux.org.uk, da...@fromorbit.com, b...@sgi.com, >> ty...@mit.edu, >> adilger.ker..

Re: [PATCH RESEND 2/10] xfs: Add support FALLOC_FL_COLLAPSE_RANGE for fallocate

2014-02-11 Thread Namjae Jeon
Hi Dave. 2014-02-11 8:32 GMT+09:00, Dave Chinner : > On Sun, Feb 02, 2014 at 02:44:11PM +0900, Namjae Jeon wrote: >> From: Namjae Jeon >> >> Add support FALLOC_FL_COLLAPSE_RANGE for fallocate. >> >> Signed-off-by: Namjae Jeon >> Signed-off-by: Ashish S

<    1   2   3   4   5   6   7   8   9   10   >