[PATCH] ext4: Return after ext4_error in case of failures

2007-10-22 Thread Aneesh Kumar K.V
This fix some instances where we were continuing after calling ext4_error. ext4_error call panic only if errors=panic mount option is set. So we need to make sure we return correctly after ext4_error call Reported by: Adrian Bunk <[EMAIL PROTECTED]> Signed-off-by: Aneesh Kumar K.V &

Explanation of different branches in git tree

2007-10-22 Thread Aneesh Kumar K.V
I gues Ted is following the same terminology. http://marc.info/?l=git&m=117965490313979&w=2 There are four branches in git.git repository that track the source tree of git: "master", "maint", "next", and "pu". I may add more maintenance branches (e.g. "maint-1.5.1") if we have huge backward in

Re: compilebench numbers for ext4

2007-10-23 Thread Aneesh Kumar K.V
Chris Mason wrote: On Tue, 23 Oct 2007 18:13:53 +0530 "Aneesh Kumar K.V" <[EMAIL PROTECTED]> wrote: I get this error while running compilebench http://oss.oracle.com/~mason/compilebench/compilebench-0.4.tar.bz2 I've uploaded compilebench-0.6.tar.bz2 and up

Re: compilebench numbers for ext4

2007-10-23 Thread Aneesh Kumar K.V
I get this error while running compilebench http://oss.oracle.com/~mason/compilebench/compilebench-0.4.tar.bz2 elm3b138:~/compilebench-0.4# ./compilebench -d /ext4/ using working directory /ext4/, 30 intial dirs 100 runs native unpatched native-0 222MB in 9.17 seconds (24.25 MB/s) native p

patch queue updates

2007-10-23 Thread Aneesh Kumar K.V
__acquires(kernel_sem) + { struct buffer_head * bh; struct ext4_super_block *es = NULL; ext4: Fix sparse warnings. From: Aneesh Kumar K.V <[EMAIL PROTECTED]> Fix sparse warnings related to static functions and local variables. Signed-off-by: Aneesh Kumar K.V <[EMAIL

Patches for review

2007-10-24 Thread Aneesh Kumar K.V
Send some patches which are in my local repo for review. The compile bench fix patch is already in patch queue. - To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

[PATCH] ext4: Change the default behaviour on error

2007-10-24 Thread Aneesh Kumar K.V
Kumar K.V <[EMAIL PROTECTED]> --- fs/ext4/super.c | 16 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 10feae6..62d7ec8 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -691,16 +691,16 @@ static int ext4_show_o

[PATCH] ext4: Show mballoc and delalloc options

2007-10-24 Thread Aneesh Kumar K.V
Both these options are enabled by default. So if they are are not set in mount options that means the user explicity disabled them using nomablloc and nodelalloc option. Show the same in ext4_show_options Signed-off-by: Aneesh Kumar K.V <[EMAIL PROTECTED]> --- fs/ext4/super.c |6 +++

[PATCH] ext4: Fix ext4_show_options to show the correct mount options.

2007-10-24 Thread Aneesh Kumar K.V
We need to look at the default value and make sure the mount options are not set via default value before showing them via ext4_show_options Signed-off-by: Aneesh Kumar K.V <[EMAIL PROTECTED]> --- fs/ext4/super.c | 28 1 files changed, 16 insertions(

[PATCH] ext4: Fix mballoc BUG when running compilebench

2007-10-24 Thread Aneesh Kumar K.V
This fix the mballoc bug when running compile bench. Instead of using direct division even though the arguments are 32 bits we retain do_div. This would be needed if we move to 64 bit logical block number. Signed-off-by: Aneesh Kumar K.V <[EMAIL PROTECTED]> --- fs/ext4/mballoc.c

Patches for review

2007-10-24 Thread Aneesh Kumar K.V
Send some patches which are in my local repo for review. The compile bench fix patch is already in patch queue. GIT: Please enter your email below. GIT: Lines beginning in "GIT: " will be removed. GIT: Consider including an overall diffstat or table of contents GIT: for the patch you are writing.

[PATCH] ext4: Enable delalloc and mballoc by default.

2007-10-24 Thread Aneesh Kumar K.V
This ensure we test the latest features more easily. We need an option to clear delayed alloc feature. Add nodealloc option. Signed-off-by: Aneesh Kumar K.V <[EMAIL PROTECTED]> --- fs/ext4/super.c |8 +++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/fs/ext4/sup

Patches for review

2007-10-24 Thread Aneesh Kumar K.V
Send some patches which are in my local repo for review. The compile bench fix patch is already in patch queue. - To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH] ext4: Enable delalloc and mballoc by default.

2007-10-24 Thread Aneesh Kumar K.V
Eric Sandeen wrote: Aneesh Kumar K.V wrote: @@ -1279,6 +1280,9 @@ clear_qf_name: case Opt_delalloc: set_opt (sbi->s_mount_opt, DELALLOC); break; If delalloc, mballoc, extents are the new defaults, is there a reason to k

Re: [PATCH] ext4: Fix ext4_show_options to show the correct mount options.

2007-10-24 Thread Aneesh Kumar K.V
Eric Sandeen wrote: Aneesh Kumar K.V wrote: We need to look at the default value and make sure the mount options are not set via default value before showing them via ext4_show_options Hm, does this jive with the comment about what's intended? /* * Show an option if * - it'

[PATCH] ext3: Return after ext3_error in case of failures

2007-10-24 Thread Aneesh Kumar K.V
This fix some instances where we were continuing after calling ext3_error. ext3_error calls panic only if errors=panic mount option is set. So we need to make sure we return correctly after ext3_error call Signed-off-by: Aneesh Kumar K.V <[EMAIL PROTECTED]> --- fs/ext3/balloc.c

[PATCH] ext3: Change the default behaviour on error

2007-10-24 Thread Aneesh Kumar K.V
Kumar K.V <[EMAIL PROTECTED]> --- fs/ext3/super.c | 16 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/fs/ext3/super.c b/fs/ext3/super.c index 0bfd3dc..6cfdd06 100644 --- a/fs/ext3/super.c +++ b/fs/ext3/super.c @@ -575,16 +575,16 @@ static int ext3_show_o

[PATCH] ext2: Change the default behaviour on error

2007-10-24 Thread Aneesh Kumar K.V
Kumar K.V <[EMAIL PROTECTED]> --- fs/ext2/super.c | 16 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/fs/ext2/super.c b/fs/ext2/super.c index 3d2019e..eb1a392 100644 --- a/fs/ext2/super.c +++ b/fs/ext2/super.c @@ -234,16 +234,16 @@ static int ext2_show_o

[PATCH] ext2: Return after ext2_error in case of failures

2007-10-24 Thread Aneesh Kumar K.V
This fix some instances where we were continuing after calling ext2_error. ext2_error call panic only if errors=panic mount option is set. So we need to make sure we return correctly after ext2_error call Signed-off-by: Aneesh Kumar K.V <[EMAIL PROTECTED]> --- fs/ext2/balloc.c

Re: problem with delayed allocation option

2007-10-26 Thread Aneesh Kumar K.V
Valerie Clement wrote: Hi all, I ran a small test which creates one directory and 2O 8-KB size files in it. When the filesystem is mounted without the delalloc option, here is the output of the command dumpe2fs for the group in which the directory and the files are created: Group 532 : (

delalloc and reservation.

2007-10-29 Thread Aneesh Kumar K.V
Hi All, I looked at the delalloc and reservation differences that Valerie was observing. Below is my understanding. I am not sure whether the below will result in higher fragmentation that Eric Sandeen is observing. I guess it should not. Even though the reservation gets discarded during the cl

Re: delalloc and reservation

2007-10-29 Thread Aneesh Kumar K.V
I guess the list dropped this mail. Sending again. -aneesh --- Begin Message --- Aneesh Kumar K.V wrote: Hi All, I looked at the delalloc and reservation differences that Valerie was observing. Below is my understanding. I am not sure whether the below will result in higher fragmentation

Re: delalloc and reservation.

2007-10-29 Thread Aneesh Kumar K.V
Alex Tomas wrote: Hi, could you try the patch attached. it should fix the issue. the idea was to align requests in order to help raid5-like setups. but somewhere I lost one bit in mballoc: it should pre-allocate all crossed stripes, but it didn't. as for discard, lustre doesn't use open/close

Re: delalloc and reservation.

2007-10-29 Thread Aneesh Kumar K.V
Alex Tomas wrote: sorry, I don't quite understand how do you observe this with nomballoc thanks, Alex Aneesh Kumar K.V wrote: mballoc by default doesn't give the particular layout only if i force small size to use inode preallocation i am hitting the problem. ie to change the

Re: delalloc and reservation.

2007-10-29 Thread Aneesh Kumar K.V
Aneesh Kumar K.V wrote: Hi All, I looked at the delalloc and reservation differences that Valerie was observing. Below is my understanding. I am not sure whether the below will result in higher fragmentation that Eric Sandeen is observing. I guess it should not. Even though the reservation

[RFC/PATCH] ext4: Clear the reservation window correctly with delayed allocation.

2007-10-30 Thread Aneesh Kumar K.V
Aneesh Kumar K.V wrote: Aneesh Kumar K.V wrote: Hi All, I looked at the delalloc and reservation differences that Valerie was observing. Below is my understanding. I am not sure whether the below will result in higher fragmentation that Eric Sandeen is observing. I guess it should not

Re: [PATCH] Introduce ext4_find_next_bit

2007-11-13 Thread Aneesh Kumar K.V
Andrew Morton wrote: On Fri, 21 Sep 2007 10:55:05 +0530 "Aneesh Kumar K.V" <[EMAIL PROTECTED]> wrote: Also add generic_find_next_le_bit This gets used by the ext4 multi block allocator patches. arm allmodconfig: fs/ext4/mballoc.c: In function `ext4_mb_generate_buddy

ext2/3/4 block bitmap validation patches

2007-11-15 Thread Aneesh Kumar K.V
This series contain the block bitmap validation patch reworked as per Linus suggestion. I am attaching below the iozone and lmbench results. The lmbench summary is inlined below File & VM system latencies in microseconds - smaller is better --

[PATCH 1/4] Add buffer head related helper functions

2007-11-15 Thread Aneesh Kumar K.V
Add buffer head related helper function bh_uptodate_or_lock and bh_submit_read which can be used by file system Signed-off-by: Aneesh Kumar K.V <[EMAIL PROTECTED]> --- include/linux/buffer_head.h | 29 + 1 files changed, 29 insertions(+), 0 deletions(-) diff

[PATCH 2/4] ext2: add block bitmap validation

2007-11-15 Thread Aneesh Kumar K.V
When a new block bitmap is read from disk in read_block_bitmap() there are a few bits that should ALWAYS be set. In particular, the blocks given corresponding to block bitmap, inode bitmap and inode tables. Validate the block bitmap against these blocks. Signed-off-by: Aneesh Kumar K.V <[EM

[PATCH 3/4] ext3: add block bitmap validation

2007-11-15 Thread Aneesh Kumar K.V
When a new block bitmap is read from disk in read_block_bitmap() there are a few bits that should ALWAYS be set. In particular, the blocks given corresponding to block bitmap, inode bitmap and inode tables. Validate the block bitmap against these blocks. Signed-off-by: Aneesh Kumar K.V <[EM

[PATCH 4/4] ext4: add block bitmap validation

2007-11-15 Thread Aneesh Kumar K.V
When a new block bitmap is read from disk in read_block_bitmap() there are a few bits that should ALWAYS be set. In particular, the blocks given corresponding to block bitmap, inode bitmap and inode tables. Validate the block bitmap against these blocks. Signed-off-by: Aneesh Kumar K.V <[EM

[Take 2] ext2/3/4 block bitmap validation patches

2007-11-19 Thread Aneesh Kumar K.V
This is the updated ext2/3/4 block bitmap validation patches Changes from the last post a) moved the bh_uptodate_or_lock and bh_submit_read to fs/buffer.c and added EXPORT_SYMBOL b) Updated bh_submit_read not to release buffer on failure. This handles one reference handling bug in the e

[PATCH] ext2: add block bitmap validation

2007-11-19 Thread Aneesh Kumar K.V
When a new block bitmap is read from disk in read_block_bitmap() there are a few bits that should ALWAYS be set. In particular, the blocks given corresponding to block bitmap, inode bitmap and inode tables. Validate the block bitmap against these blocks. Signed-off-by: Aneesh Kumar K.V <[EM

[PATCH] ext3: add block bitmap validation

2007-11-19 Thread Aneesh Kumar K.V
When a new block bitmap is read from disk in read_block_bitmap() there are a few bits that should ALWAYS be set. In particular, the blocks given corresponding to block bitmap, inode bitmap and inode tables. Validate the block bitmap against these blocks. Signed-off-by: Aneesh Kumar K.V <[EM

[PATCH] ext4: add block bitmap validation

2007-11-19 Thread Aneesh Kumar K.V
When a new block bitmap is read from disk in read_block_bitmap() there are a few bits that should ALWAYS be set. In particular, the blocks given corresponding to block bitmap, inode bitmap and inode tables. Validate the block bitmap against these blocks. Signed-off-by: Aneesh Kumar K.V <[EM

[PATCH] Add buffer head related helper functions

2007-11-19 Thread Aneesh Kumar K.V
Add buffer head related helper function bh_uptodate_or_lock and bh_submit_read which can be used by file system Signed-off-by: Aneesh Kumar K.V <[EMAIL PROTECTED]> --- fs/buffer.c | 41 + include/linux/buffer_head.h |2 ++ 2

Re: [Take 2] ext2/3/4 block bitmap validation patches

2007-11-19 Thread Aneesh Kumar K.V
Aneesh Kumar K.V wrote: This is the updated ext2/3/4 block bitmap validation patches Changes from the last post a) moved the bh_uptodate_or_lock and bh_submit_read to fs/buffer.c and added EXPORT_SYMBOL b) Updated bh_submit_read not to release buffer on failure. This handles one

blk bitmap validation test results

2007-11-22 Thread Aneesh Kumar K.V
Andreas suggested me to get the iozone results after multiple runs. I don't see any performance issue with the blk bitmap validation changes now. v2.6.24-rc3-35-g2e12044 File & VM system latencies in microseconds - smaller is better ---

Re: ext4 still broken on arm (at least)

2007-11-27 Thread Aneesh Kumar K.V
I actually sent in a patch which changes asking for review to linux-arch. I haven't got the response yet. Attaching the patch below Introduce ext4_find_next_bit From: Aneesh Kumar K.V <[EMAIL PROTECTED]> This gets used by the ext4 multi block allocator patches.

circular locking dependency detected

2007-11-29 Thread Aneesh Kumar K.V
=== [ INFO: possible circular locking dependency detected ] 2.6.24-rc3 #6 --- bash/2294 is trying to acquire lock: (&journal->j_list_lock){--..}, at: [] journal_try_to_free_buffers+0x76/0x10c

[RFC][PATCH 2/3] ext4: Convert truncate_mutex to read write semaphore.

2007-12-03 Thread Aneesh Kumar K.V
We are currently taking the truncate_mutex for every read. This would have performance impact on large CPU configuration. Convert the lock to read write semaphore and take read lock when we are trying to read the file. Signed-off-by: Aneesh Kumar K.V <[EMAIL PROTECTED]> --- fs/ext4/ba

[RFC][PATCH 1/3] ext4: Make ext4_get_blocks_wrap take the truncate_mutex early.

2007-12-03 Thread Aneesh Kumar K.V
Kumar K.V <[EMAIL PROTECTED]> --- fs/ext4/extents.c |7 +++-- fs/ext4/inode.c | 69 +- include/linux/ext4_fs.h | 12 ++-- 3 files changed, 21 insertions(+), 67 deletions(-) diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c

[RFC] truncate_mutex read write semaphore conversion

2007-12-03 Thread Aneesh Kumar K.V
The below patchset is NOT for patch queue. I am posting it here to get feedback regarding the approach and what test I need to run to make sure we are not breaking any locking rules. I have run dbench, ffsb, fsstress, fs_di, fs_inode, fsx_linux . Bonnie didn't run completely. In the automated setu

[RFC][PATCH 3/3] ext4: Take read lock during overwrite case.

2007-12-03 Thread Aneesh Kumar K.V
When we are overwriting a file and not actually allocating new file system blocks we need to take only the read lock on i_data_sem. Signed-off-by: Aneesh Kumar K.V <[EMAIL PROTECTED]> --- fs/ext4/inode.c | 32 1 files changed, 24 insertions(+), 8 del

[PATCH] ext4: Check for the correct error return from ext4_ext_get_blocks

2007-12-03 Thread Aneesh Kumar K.V
ext4_ext_get_blocks returns negative values on error. We should check for <= 0 Signed-off-by: Aneesh Kumar K.V <[EMAIL PROTECTED]> --- fs/ext4/extents.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c index a2475d4

Understanding mballoc

2007-12-03 Thread Aneesh Kumar K.V
Alex, This is my attempt at understanding multi block allocator. I have few questions marked as FIXME below. Can you help answering them. Most of this data is already in the patch queue as commit message. I have updated some details regarding preallocation. Once we understand the details i will up

[PATCH 3/3] ext4: Take read lock during overwrite case.

2007-12-14 Thread Aneesh Kumar K.V
When we are overwriting a file and not actually allocating new file system blocks we need to take only the read lock on i_data_sem. Signed-off-by: Aneesh Kumar K.V <[EMAIL PROTECTED]> --- fs/ext4/inode.c | 32 1 files changed, 24 insertions(+), 8 del

[PATCH 2/3] ext4: Convert truncate_mutex to read write semaphore.

2007-12-14 Thread Aneesh Kumar K.V
We are currently taking the truncate_mutex for every read. This would have performance impact on large CPU configuration. Convert the lock to read write semaphore and take read lock when we are trying to read the file. Signed-off-by: Aneesh Kumar K.V <[EMAIL PROTECTED]> --- fs/ext4/ba

[RFC] truncate_mutex to read_write semaphore

2007-12-14 Thread Aneesh Kumar K.V
The series include the truncate_mutex to read write semaphore conversion. I am marking below some of the test results. For O_DIRECT workloads we won't see the contention on truncate mutex because we are doing a get_block under inode->i_mutex. For FIBMAP we won't see contention because the get_

[PATCH 1/3] ext4: Make ext4_get_blocks_wrap take the truncate_mutex early.

2007-12-14 Thread Aneesh Kumar K.V
Kumar K.V <[EMAIL PROTECTED]> --- fs/ext4/extents.c |9 -- fs/ext4/inode.c | 69 +- include/linux/ext4_fs.h | 12 ++-- 3 files changed, 23 insertions(+), 67 deletions(-) diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c

BUG: soft lockup - CPU#0 stuck for 11s! [fsstress:5534]

2007-12-20 Thread Aneesh Kumar K.V
I am seeing this with the patch queue. I can reproduce this on x86 and powerpc. I see the file system full when this happens. The same happens even without delalloc enabled. Any idea what i should try now. It is not spinning on the spin lock. I had the spin lock debug enabled and added similar ch

[PATCH] ext4: Fix the soft lockup with multi block allocator.

2007-12-21 Thread Aneesh Kumar K.V
scard logic going on tight loop resulting in watchdog timer triggering soft lockup warning. Signed-off-by: Aneesh Kumar K.V <[EMAIL PROTECTED]> --- fs/ext4/mballoc.c | 12 +++- 1 files changed, 3 insertions(+), 9 deletions(-) diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c in

Re: BUG: soft lockup - CPU#0 stuck for 11s! [fsstress:5534]

2007-12-21 Thread Aneesh Kumar K.V
On Thu, Dec 20, 2007 at 08:02:42PM +0530, Aneesh Kumar K.V wrote: > I am seeing this with the patch queue. I can reproduce this on x86 and > powerpc. I see the file system full when this happens. The same happens even > without delalloc enabled. > > The below patch fix the s

Patch queue update

2007-12-23 Thread Aneesh Kumar K.V
Hi Mingming, I have placed the updated patch queue at http://www.radian.org/~kvaneesh/ext4/dec-24-2007/ The .tar can be found at http://www.radian.org/~kvaneesh/ext4/dec-24-2007/patch-series.tar The changes involve the below attached diff. I also updated the commit message of mballoc core patc

[PATCH] ext4: Use the correct block number when reading the super block.

2007-12-30 Thread Aneesh Kumar K.V
If the block device hard sector size is larger than EXT4_MIN_BLOCK_SIZE we end up with wrong block number when reading super block. Signed-off-by: Aneesh Kumar K.V <[EMAIL PROTECTED]> --- fs/ext4/super.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/ext4/s

[Updated PATCH] ext4: Use the correct block number when reading the super block.

2007-12-31 Thread Aneesh Kumar K.V
If the block device hard sector size is larger than EXT4_MIN_BLOCK_SIZE we end up with wrong block number when reading super block. Signed-off-by: Aneesh Kumar K.V <[EMAIL PROTECTED]> --- fs/ext4/super.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/f

Re: [Updated PATCH] ext4: Use the correct block number when reading the super block.

2007-12-31 Thread Aneesh Kumar K.V
On Mon, Dec 31, 2007 at 01:59:22PM +0530, Aneesh Kumar K.V wrote: > If the block device hard sector size is larger than EXT4_MIN_BLOCK_SIZE we > end up with wrong block number when reading super block. > Ignore the patch. I got confused by the do_div syntax. The do_div already save the

[PATCH] mballoc changes from ldiskfs

2008-01-07 Thread Aneesh Kumar K.V
Hi, This patch is not even compile tested. I am sending it over to find out whether some of the changes are even needed and to make sure i didn't drop any bug fix in the merge. something I noticed. a) prealloc table is completely gone. b) ext4_mb_put_pa change. ( I guess that is a bug with ldis

Re: [PATCH] mballoc changes from ldiskfs

2008-01-07 Thread Aneesh Kumar K.V
On Mon, Jan 07, 2008 at 11:58:00PM +0530, Aneesh Kumar K.V wrote: > Hi, > > This patch is not even compile tested. I am sending it over to find out > whether some of the changes are even needed and to make sure i didn't > drop any bug fix in the merge. > > something I

[PATCH] mballoc update

2008-01-07 Thread Aneesh Kumar K.V
Hi, This is the update for mballoc patch. The changes are result of merging with the lustre cvs version of mballoc. I liked this patch better because it is simple. I also the updated the commit message. The update commit message is also attached below. We only have one FIXME!! in the commit messag

mballoc and inode prealloc space deletion

2008-01-08 Thread Aneesh Kumar K.V
Hi Alex, With the latest changes i see both group preallocation and inode preallocation being used by mballoc. Since the choice is now made with file size not just the request size. (None of the test were actually using inode prealloc previously). Now that the test are using inode prealloc i see t

Re: [PATCH] mballoc update

2008-01-08 Thread Aneesh Kumar K.V
On Tue, Jan 08, 2008 at 12:01:14PM +0530, Aneesh Kumar K.V wrote: > Hi, > > This is the update for mballoc patch. The changes are result of merging > with the lustre cvs version of mballoc. I liked this patch better because > it is simple. I also the updated the commit message. Th

Re: [PATCH] set s_raid_stride and s_raid_stripe_width

2008-01-09 Thread Aneesh Kumar K.V
[..snip...] > + if (param->s_raid_stride && > + (param->s_raid_stripe_width % param->s_raid_stride) != 0) > + fprintf(stderr, _("\nWarning: RAID stripe-width %u not an even " > + "multiple of stride %u.\n\n"), > + param->s_

[PATCH] ext4: Use superblock s_raid_stripe_width as stripe size during block allocation.

2008-01-09 Thread Aneesh Kumar K.V
block. Signed-off-by: Aneesh Kumar K.V <[EMAIL PROTECTED]> --- fs/ext4/super.c | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/fs/ext4/super.c b/fs/ext4/super.c index db1edc8..10330eb 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -2136,6 +2136,16 @@

[PATCH] ext4: Check for return value from sb_set_blocksize

2008-01-09 Thread Aneesh Kumar K.V
sb_set_blocksize validates whether the specfied block size can be used by the file system. Make sure we fail mounting the file system if the blocksize specfied cannot be used. Signed-off-by: Aneesh Kumar K.V <[EMAIL PROTECTED]> --- fs/ext4/super.c | 18 +++--- 1 files chan

Should we enabling mballoc by default ?

2008-01-09 Thread Aneesh Kumar K.V
Hi, mballoc currently causes fragmentation of small size files. The behaviour can be observed by running parallel dd on ext4 file system. A sample test case can be found here. http://www.radian.org/~kvaneesh/ext4/mballoc-frag/fragmentation-analysis This is because for small size request/file mba

Re: [PATCH] ext4: Check for return value from sb_set_blocksize

2008-01-09 Thread Aneesh Kumar K.V
Updated patch. The earlier patch did multiple brelse() during failed mount case. ext4: Check for return value from sb_set_blocksize From: Aneesh Kumar K.V <[EMAIL PROTECTED]> sb_set_blocksize validates whether the specfied block size can be used by the file system. Make sure we fail mo

Re: [PATCH] ext4: Fix the soft lockup with multi block allocator.

2008-01-09 Thread Aneesh Kumar K.V
On Wed, Jan 09, 2008 at 01:10:41PM +0100, Jan Kara wrote: > > With the multi block allocator when we don't have prealloc space we discard > > @@ -3790,7 +3782,9 @@ repeat: > > > > /* if we still need more blocks and some PAs were used, try again */ > > if (free < needed && busy) { > > +

Re: [PATCH] ext4: Fix the soft lockup with multi block allocator.

2008-01-09 Thread Aneesh Kumar K.V
On Wed, Jan 09, 2008 at 07:44:30PM +0100, Jan Kara wrote: > On Wed 09-01-08 23:54:28, Aneesh Kumar K.V wrote: > > On Wed, Jan 09, 2008 at 01:10:41PM +0100, Jan Kara wrote: > > > > With the multi block allocator when we don't have prealloc space we > > > &

Re: [PATCH] ext4: Use superblock s_raid_stripe_width as stripe size during block allocation.

2008-01-09 Thread Aneesh Kumar K.V
On Wed, Jan 09, 2008 at 04:36:27PM -0700, Andreas Dilger wrote: > On Jan 09, 2008 22:37 +0530, Aneesh Kumar K.V wrote: > > The stipe size used during block allocation is calculated as below. > > a) if we specify a stripe= option using mount time. Use that value. > > b)

patch queue update

2008-01-10 Thread Aneesh Kumar K.V
Hi Mingming, New patches for patch queue can be found at http://www.radian.org/~kvaneesh/ext4/jan-10-2008-ver2/ The changes are a) mballoc patch got an explanation about regular allocator. b) mballoc regular allocator we changed the usage of ffs to fls. I guess it makes sense to use

Re: patch queue update

2008-01-10 Thread Aneesh Kumar K.V
On Thu, Jan 10, 2008 at 02:43:23PM -0700, Andreas Dilger wrote: > On Jan 10, 2008 21:03 +0530, Aneesh Kumar K.V wrote: > > if (i >= sbi->s_mb_order2_reqs) { > > - i--; > > - if ((ac->ac_g_ex.fe_len & (~(1 << i))) == 0) > > +

Re: Problems with mballoc and uninit_groups option

2008-01-11 Thread Aneesh Kumar K.V
On Fri, Jan 11, 2008 at 03:04:08PM +0100, Valerie Clement wrote: > Hi, > > I've got problems with mballoc when I create the ext4 filesystem with > the "uninit_groups" option enabled. > > First, I do a single test on a filesystem created without the > "uninit_groups" option and mounted with the

Re: [Fwd: [Bug 9732] New: oops in extent code via ext4_fallocate]

2008-01-12 Thread Aneesh Kumar K.V
On Fri, Jan 11, 2008 at 02:42:00PM -0600, Eric Sandeen wrote: > > The BUG_ON is: > > BUG_ON(*logical < le32_to_cpu(ex->ee_block) + > le16_to_cpu(ex->ee_len)); > > where these were the values: > > logical 8 ee_block 0 ee_len 32776 > > Haven't looked further into it yet. > No

[PATCH] ext4: use ext4_ext_get_actual_len instead of directly using ext4_extent.ee_len

2008-01-12 Thread Aneesh Kumar K.V
[] sys_fallocate+0xe4/0x10d [] tracesys+0xd5/0xda Signed-off-by: Aneesh Kumar K.V <[EMAIL PROTECTED]> --- fs/ext4/extents.c | 26 ++ 1 files changed, 14 insertions(+), 12 deletions(-) diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c index 81bce98..4269cc6 100644 --

Re: [PATCH] ext4: use ext4_ext_get_actual_len instead of directly using ext4_extent.ee_len

2008-01-14 Thread Aneesh Kumar K.V
On Sat, Jan 12, 2008 at 11:44:00PM +0530, Aneesh Kumar K.V wrote: > fs/ext4/extents.c | 26 ++ > 1 files changed, 14 insertions(+), 12 deletions(-) > > diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c > index 81bce98..4269cc6 100644 > --- a/fs/ext4

Re: checkpatch.pl warnings

2008-01-15 Thread Aneesh Kumar K.V
On Mon, Jan 14, 2008 at 12:49:27PM -0800, Mingming Cao wrote: > Hi Guys, > > Could you check the checkpatch.pl warnings and see if it make sense to fix > them? Thanks! > > [EMAIL PROTECTED]:~/fs/ext4/stylecheck$ grep "has style problems" * > linux-2.6.24-rc7-48-bit-i_blocks.patch.out:Your patch

Re: [PATCH] Fix oops in mballoc caused by a variable overflow

2008-01-16 Thread Aneesh Kumar K.V
t; - start = start << bsbits; > > - start = (start / (8 * (1024 * 1024))) * 8 * (1024 * 1024); > > + pstart = ac->ac_o_ex.fe_logical; > > + pstart = pstart << bsbits; > > + pstart = (pstart / (8 * (1024 * 1024)

Re: [PATCH] Fix oops in mballoc caused by a variable overflow

2008-01-17 Thread Aneesh Kumar K.V
On Thu, Jan 17, 2008 at 10:43:40AM +0100, Valerie Clement wrote: > Aneesh Kumar K.V wrote: >> What about this ? I guess we will overflow start = start << bsbits; >> > > Hi Aneesh, > your patch below doesn't fix the issue, because as start_off is also > loff

Re: [PATCH] Fix oops in mballoc caused by a variable overflow

2008-01-17 Thread Aneesh Kumar K.V
On Thu, Jan 17, 2008 at 10:43:40AM +0100, Valerie Clement wrote: > Aneesh Kumar K.V wrote: >> What about this ? I guess we will overflow start = start << bsbits; >> > > Hi Aneesh, > your patch below doesn't fix the issue, because as start_off is also > loff

Re: [PATCH] Fix oops in mballoc caused by a variable overflow

2008-01-17 Thread Aneesh Kumar K.V
On Thu, Jan 17, 2008 at 02:09:41PM +0100, Valerie Clement wrote: > Aneesh Kumar K.V wrote: >> On Thu, Jan 17, 2008 at 10:43:40AM +0100, Valerie Clement wrote: >>> Aneesh Kumar K.V wrote: >>>> What about this ? I guess we will overflow start = start << bsbits

[PATCH] ext4: Fix the BUG_ON in jbd2_journal_commit_transaction

2008-01-20 Thread Aneesh Kumar K.V
] [] kernel_thread_helper+0x7/0x14 Signed-off-by: Aneesh Kumar K.V <[EMAIL PROTECTED]> --- fs/jbd2/commit.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/jbd2/commit.c b/fs/jbd2/commit.c index 2a081b7..2107820 100644 --- a/fs/jbd2/commit.c +++ b/fs/jbd2/commit.c @@ -359,7

Re: [PATCH 23/49] Add buffer head related helper functions

2008-01-23 Thread Aneesh Kumar K.V
uffer(bh); > > + if (buffer_uptodate(bh)) > > + return 0; > > Here it will unlock the buffer and return zero. > > This function is unusable when passed an unlocked buffer. > Updated patch below. commit 70d4ca32604e0935a8b9a49c5ac8b9c64c810693 Author:

Re: [PATCH 36/49] ext4: Add EXT4_IOC_MIGRATE ioctl

2008-01-23 Thread Aneesh Kumar K.V
xt4_lblk_t first_block, last_block; > + ext4_fsblk_t first_pblock, last_pblock; > +}; > Updated patch commit c4786b67cdc5b24d2548a69b62774fb54f8f1575 Author: Aneesh Kumar K.V <[EMAIL PROTECTED]> Date: Tue Jan 22 09:28:55 2008 +0530 ext4: Add EXT4_IOC_MIGRATE ioc

Re: [PATCH 30/49] ext4: Convert truncate_mutex to read write semaphore.

2008-01-23 Thread Aneesh Kumar K.V
On Wed, Jan 23, 2008 at 02:06:59PM -0800, Andrew Morton wrote: > > On Mon, 21 Jan 2008 22:02:09 -0500 "Theodore Ts'o" <[EMAIL PROTECTED]> > > wrote: > > +int ext4_get_blocks_wrap(handle_t *handle, struct inode *inode, sector_t > > block, > > + unsigned long max_blocks, struct bu

Re: [PATCH 41/49] ext4: Add multi block allocator for ext4

2008-01-23 Thread Aneesh Kumar K.V
TECTED]> > > Signed-off-by: Andreas Dilger <[EMAIL PROTECTED]> > > Signed-off-by: Aneesh Kumar K.V <[EMAIL PROTECTED]> > > Signed-off-by: Eric Sandeen <[EMAIL PROTECTED]> > > Signed-off-by: "Theodore Ts'

Re: [PATCH 41/49] ext4: Add multi block allocator for ext4

2008-01-24 Thread Aneesh Kumar K.V
updated patch. Waiting for the test results. I am only attaching the diff. Mballoc patch is really large. -aneesh diff --git a/Documentation/filesystems/ext4.txt b/Documentation/filesystems/ext4.txt index 4f329af..ec7d349 100644 --- a/Documentation/filesystems/ext4.txt +++ b/Documentation/filesy

Patch queue update

2008-01-24 Thread Aneesh Kumar K.V
I have updated patches based on the review feedback from Andrew. I have tested this on 128(64p) ppc64 sles 4(2p)ppc64 debian 4(2p)x86_64 ubuntu-gutsy Updated patches are at http://www.radian.org/~kvaneesh/ext4/jan-24-2008/ http://www.radian.org/~kvaneesh/ext4/jan-24-2008/patches.tar D

Re: [PATCH 41/49] ext4: Add multi block allocator for ext4

2008-01-24 Thread Aneesh Kumar K.V
On Thu, Jan 24, 2008 at 01:26:14PM +0530, Aneesh Kumar K.V wrote: > > > > > > +/* find most significant bit */ > > > +static int fmsb(unsigned short word) > > > +{ > > > + int order; > > > + > > > + if (word > 255) { >

GFP_ usage in kmalloc with mballoc

2008-01-24 Thread Aneesh Kumar K.V
Hi, I looked at the GFP flag usage in mballoc. I think the below change make sense with respect to mballoc. First hunk is memory allocation during ext4_mb_init which is called during mount time. I guess it is ok to convert that to GFP_KERNEL. Second hunk is during ext4_mb_free_metadata. I gues

Re: [PATCH 36/49] ext4: Add EXT4_IOC_MIGRATE ioctl

2008-01-26 Thread Aneesh Kumar K.V
On Fri, Jan 25, 2008 at 11:15:00PM -0500, Theodore Tso wrote: > On Thu, Jan 24, 2008 at 11:25:32AM +0530, Aneesh Kumar K.V wrote: > > +static int free_ext_idx(handle_t *handle, struct inode *inode, > > + struct ext4_extent_idx *ix) > > +{ >

Patch for 2.6.25 queue

2008-01-26 Thread Aneesh Kumar K.V
This diff contain mballoc fixes and update for ext3-4 migrate patch. Testing: ext3 to ext4 migration. I will be putting the patch queue for abat test now. -aneesh diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c index ebcd25e..99d16f5 100644 --- a/fs/ext4/extents.c +++ b/fs/ext4/extents.c @@

Re: [PATCH] Fix ext4 bitops

2008-02-03 Thread Aneesh Kumar K.V
On Sun, Feb 03, 2008 at 01:39:02PM +0100, Geert Uytterhoeven wrote: > On Sun, 3 Feb 2008, Heiko Carstens wrote: > > On Fri, Feb 01, 2008 at 10:04:04PM +0100, Bastian Blank wrote: > > > On Fri, Feb 01, 2008 at 12:22:57PM -0800, Andrew Morton wrote: > > > > On Fri, 1 Feb 2008 21:02:08 +0100 > > > > B

Re: BUG_ON at mballoc.c:3752

2008-02-03 Thread Aneesh Kumar K.V
On Thu, Jan 31, 2008 at 04:42:07PM +0100, Eric Sesterhenn wrote: > * Eric Sesterhenn ([EMAIL PROTECTED]) wrote: > > hi, > > > > while running a modified version of fsfuzzer i triggered the BUG() in > > ext4_mb_release_inode_pa(). Sadly I am not able to reproduce this using > > the generated image,

[PATCH] ext4: Fix Null dereference.

2008-02-03 Thread Aneesh Kumar K.V
bitmap_bh); ... Signed-off-by: Aneesh Kumar K.V <[EMAIL PROTECTED]> --- fs/ext4/mballoc.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c index 76e5fed..06d1f52 100644 --- a/fs/ext4/mballoc.c +++ b/fs/ext4/mballoc.c @@ -3069,7 +3069,

Re: [PATCH] Fix ext4 bitops

2008-02-04 Thread Aneesh Kumar K.V
On Mon, Feb 04, 2008 at 10:24:36AM +0100, Heiko Carstens wrote: > > > > > | fs/ext4/mballoc.c: In function 'ext4_mb_generate_buddy': > > > > > | fs/ext4/mballoc.c:954: error: implicit declaration of function > > > > > 'generic_find_next_le_bit' > > > > > > > > > > The s390 specific bitops uses pa

Re: Fw: [Bugme-new] [Bug 9849] New: NULL pointer deref in journal_wait_on_commit_record

2008-02-04 Thread Aneesh Kumar K.V
ecord(cbh); > > if (err) > jbd2_journal_abort(journal, err); > > Needs the below small change also. I don't see this patch in the patch queue. So i guess we can add the below diff to the same. The change was suggested by Girish. Before journal checksum

jbd2_handle and i_data_sem circular locking dependency detected

2008-02-04 Thread Aneesh Kumar K.V
Hi, This is with the new ext3 -> ext4 migrate code added. The recently added lockdep for jbd2 helped to find this out. We want to hold the i_data_sem on the ext3 inode during migration to prevent walking the ext3 inode when it is being converted to ext4 format. Also we want to avoid file truncati

[PATCH] ext4: Use the right macro for testing the incompat feature.

2008-02-04 Thread Aneesh Kumar K.V
Incompat feature need to be checked using JBD2_HAS_INCOMPAT_FEATURE Signed-off-by: Aneesh Kumar K.V <[EMAIL PROTECTED]> --- fs/jbd2/commit.c |2 +- fs/jbd2/recovery.c |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/jbd2/commit.c b/fs/jbd2/commit.c index 2

<    1   2   3   4   >