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
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
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
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
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
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
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
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
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
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
) 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
) 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
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
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
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
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
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
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
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
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
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
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
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
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
>> +
>> +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
+
+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;
+
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
&
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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) {
>>
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
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
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:
>>
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
>> [...]
>>
>>> + /* 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);
>>> +
[...]
+ /* 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
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..
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
401 - 500 of 1824 matches
Mail list logo