[RFC][PATCH 0/3] ext4 online defrag (ver 0.2)

2007-01-16 Thread sho
Hi I have modified the online defrag patches to add new function which can put the multiple files closer together. It is effective for an application which reads many small files. Our goal is to reduce OS booting time by putting the files, read during OS booting, closer together.

[RFC][PATCH 2/3] Move the file data to the new blocks

2007-01-16 Thread sho
Move the blocks on the temporary inode to the original inode by a page. 1. Read the file data from the old blocks to the page 2. Move the block on the temporary inode to the original inode 3. Write the file data on the page into the new blocks Signed-off-by: Takashi Sato [EMAIL PROTECTED] ---

Re: [RFC] delayed allocation, mballoc, etc

2006-12-27 Thread sho
Hi Alex I found a bug on linux-2.6.19-rc6 with Alex's patches. With no files on the device, doing the following system call: 1. open with O_CREAT fd = open(test_file, O_RDWR|O_CREAT, 0777) 2. ftruncate (length is not aligned with blocksize) ftruncate(fd, 200) 3. write out the

[RFC][PATCH 0/3] ext4 online defrag

2006-12-22 Thread sho
Hi I have modified the online defrag patches to support ext4 on Linux 2.6.19-rc6. There is no difference of the features from the previous version. My patches need the following Alex's patches of the multi-block allocation for Linux 2.6.19-rc6. [RFC] delayed allocation, mballoc, etc

[RFC][PATCH 1/3] Allocate new contiguous blocks

2006-12-22 Thread sho
Search contiguous free blocks with Alex's mutil-block allocation and allocate them for the temporary inode. This patch applies on top of Alex's patches. [RFC] delayed allocation, mballoc, etc http://marc.theaimsgroup.com/?l=linux-ext4m=116493228301966w=2 Signed-off-by: Takashi Sato [EMAIL

[RFC][PATCH 2/2] Move the file data to the new blocks

2006-12-05 Thread sho
Move the blocks on the temporary inode to the original inode by a page. 1. Read the file data from the old blocks to the page 2. Move the block on the temporary inode to the original inode 3. Write the file data on the page into the new blocks Signed-off-by: Takashi Sato [EMAIL PROTECTED] ---

[RFC][PATCH 3/3] Online defrag command

2006-11-09 Thread sho
The defrag command. o Defrag for a file. # e4defrag file-name o Defrag for all files on whole ext3. # e4defrag device-name Signed-off-by: Takashi Sato [EMAIL PROTECTED] --- /* * e4defrag, ext4 filesystem defragmenter * */ #ifndef _LARGEFILE_SOURCE #define _LARGEFILE_SOURCE #endif #ifndef

[RFC][PATCH 1/3] Allocate new contiguous blocks

2006-11-09 Thread sho
Search contiguous free blocks with Alex's mutil-block allocation and allocate them for the temporary inode. This patch applies on top of Alex's patches. [RFC] extents,mballoc,delalloc for 2.6.16.8 http://marc.theaimsgroup.com/?l=linux-ext4m=114669168616780w=2 Signed-off-by: Takashi Sato [EMAIL

[RFC][PATCH 0/3] Extent base online defrag

2006-11-09 Thread sho
Hi, I am considering the online defrag function for ext4 and thinking that your following patch set for multi-block allocation is useful to search contiguous free blocks for the defragmentation. [RFC] extents,mballoc,delalloc for 2.6.16.8

[RFC][PATCH 2/3] Move the file data to the new blocks

2006-11-09 Thread sho
Move the blocks on the temporary inode to the original inode by a page. 1. Read the file data from the old blocks to the page 2. Move the block on the temporary inode to the original inode 3. Write the file data on the page into the new blocks Signed-off-by: Takashi Sato [EMAIL PROTECTED] ---

RE: Updated ext4 patches for 2.6.18-rc6

2006-09-08 Thread sho
Hi Mingming, I found a trivial bug in Mingming's ext4 patch titled ext4-extents-48bit.patch. There happens a type conflicting: +int ext4_ext_get_blocks(handle_t *handle, struct inode *inode, ext4_fsblk_t iblock, You should fix extern declaration for ext4_ext_get_blocks. Cheers, sho

[RFC][1/4] ext2/3/4: enlarge blocksize

2006-09-07 Thread sho
Hi all, On July 7, 2006, sho wrote: On Jun 29, 2006, Andreas wrote: On Jun 28, 2006 17:50 +0200, Johann Lombardi wrote: ext2/ext3_dir_entry_2 has a 16-bit entry(rec_len) and it would overflow with 64KB blocksize. This patch prevent from overflow by limiting rec_len to 65532

[RFC][2/4] ext2: fix rec_len overflow

2006-09-07 Thread sho
[2/4] ext2: fix rec_len overflow - prevent rec_len from overflow with 64KB blocksize Signed-off-by: Takashi Sato [EMAIL PROTECTED] --- diff -upNr -X linux-2.6.18-rc4-mingming/Documentation/dontdiff linux-2.6.18-rc4-mingming/fs/ext2/dir.c

[RFC][3/4] ext3: fix rec_len overflow

2006-09-07 Thread sho
[3/4] ext3: fix rec_len overflow - prevent rec_len from overflow with 64KB blocksize Signed-off-by: Takashi Sato [EMAIL PROTECTED] --- diff -upNr -X linux-2.6.18-rc4-mingming/Documentation/dontdiff linux-2.6.18-rc4-mingming/fs/ext3/dir.c