[patch 251/260] ext3: change the default behaviour on error

2008-02-06 Thread akpm
From: Aneesh Kumar K.V [EMAIL PROTECTED] ext3 file system was by default ignoring errors and continuing. This is not a good default as continuing on error could lead to file system corruption. Change the default to mark the file system readonly. Debian and ubuntu already does this as the

[patch 258/260] ext3: fix lock inversion in direct IO

2008-02-06 Thread akpm
From: Jan Kara [EMAIL PROTECTED] We cannot start transaction in ext3_direct_IO() and just let it last during the whole write because dio_get_page() acquires mmap_sem which ranks above transaction start (e.g. because we have dependency chain mmap_sem-PageLock-journal_start, or because we update

[patch 244/260] ext2: add block bitmap validation

2008-02-06 Thread akpm
From: Aneesh Kumar K.V [EMAIL PROTECTED] 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.

[patch 245/260] ext3: add block bitmap validation

2008-02-06 Thread akpm
From: Aneesh Kumar K.V [EMAIL PROTECTED] 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.

[patch 254/260] ext[234]: remove unused argument for ext[234]_find_goal()

2008-02-06 Thread akpm
From: Akinobu Mita [EMAIL PROTECTED] The argument chain for ext[234]_find_goal() is not used. This patch removes it and fixes comment as well. Cc: linux-ext4@vger.kernel.org Signed-off-by: Akinobu Mita [EMAIL PROTECTED] Signed-off-by: Andrew Morton [EMAIL PROTECTED] --- fs/ext2/inode.c |7

[patch 014/260] ext2: change the default behaviour on error

2008-02-06 Thread akpm
From: Aneesh Kumar K.V [EMAIL PROTECTED] ext2 file system was by default ignoring errors and continuing. This is not a good default as continuing on error could lead to file system corruption. Change the default to mark the file system readonly. Debian and ubuntu already does this as the

[patch 252/260] ext[234]: fix comment for nonexistent variable

2008-02-06 Thread akpm
From: Akinobu Mita [EMAIL PROTECTED] The comment in ext[234]_new_blocks() describes about i. But there is no local variable called i in that scope. I guess it has been renamed to group_no. Cc: linux-ext4@vger.kernel.org Signed-off-by: Akinobu Mita [EMAIL PROTECTED] Signed-off-by: Andrew Morton

[patch 255/260] ext[234]: cleanup ext[234]_bg_num_gdb()

2008-02-06 Thread akpm
From: Akinobu Mita [EMAIL PROTECTED] Use ext[234]_bg_has_super() to remove duplicate code. Signed-off-by: Akinobu Mita [EMAIL PROTECTED] Cc: linux-ext4@vger.kernel.org Signed-off-by: Andrew Morton [EMAIL PROTECTED] --- fs/ext2/balloc.c |5 + fs/ext3/balloc.c |6 +-

[patch 253/260] ext[234]: use ext[234]_get_group_desc()

2008-02-06 Thread akpm
From: Akinobu Mita [EMAIL PROTECTED] Use ext[234]_get_group_desc() to get group descriptor from group number. Cc: linux-ext4@vger.kernel.org Signed-off-by: Akinobu Mita [EMAIL PROTECTED] Signed-off-by: Andrew Morton [EMAIL PROTECTED] --- fs/ext2/super.c | 12 fs/ext3/super.c |

[patch 248/260] BKL-removal: remove incorrect comment refering to lock_kernel() from jbd/jbd2

2008-02-06 Thread akpm
From: Andi Kleen [EMAIL PROTECTED] None of the callers of this function does actually take the BKL as far as I can see. So remove the comment refering to the BKL. Signed-off-by: Andi Kleen [EMAIL PROTECTED] Cc: linux-ext4@vger.kernel.org Cc: Theodore Ts'o [EMAIL PROTECTED] Signed-off-by: Andrew

[patch 250/260] ext3: return after ext3_error in case of failures

2008-02-06 Thread akpm
From: Aneesh Kumar K.V [EMAIL PROTECTED] This fixes 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

Re: [PATCH] jbd: fix assertion failure in journal_next_log_block

2008-02-06 Thread Jan Kara
On Tue 05-02-08 13:59:05, Josef Bacik wrote: On Tuesday 05 February 2008 12:27:31 pm Jan Kara wrote: Hello, Sorry for replying a bit late but I'm currently falling behind in maling-list reading... The way jbd tries to determine if there is enough space left on the journal in

[PATCH] ext4: Fix circular locking dependency with migrate and rm.

2008-02-06 Thread Aneesh Kumar K.V
We now take inode-i_mutex lock to prevent any update of the inode i_data field. Before we switch the inode format we take i_data_sem to prevent parallel read. === [ INFO: possible circular locking dependency detected ] 2.6.24-rc8 #6

[PATCH 3/3] fsck: Do not check mounted filesystems

2008-02-06 Thread Matthias Koenig
Add option -m to ignore and return an exit code of 0 for mounted filesystems. Signed-off-by: Matthias Koenig [EMAIL PROTECTED] --- fsck/fsck.8.in |4 +++ fsck/fsck.c| 77 +++- 2 files changed, 80 insertions(+), 1 deletions(-) diff

[PATCH 2/3] fsck: add support for the fsprobe library wrapper

2008-02-06 Thread Matthias Koenig
Allows fsck to work with blkid or volume_id as defined by the configure invocation. Signed-off-by: Matthias Koenig [EMAIL PROTECTED] --- fsck/Makefile.am | 17 +++-- fsck/fsck.c | 13 ++--- 2 files changed, 21 insertions(+), 9 deletions(-) diff --git

[PATCH 1/3] fsck: add fsck from e2fsprogs to util-linux-ng tree

2008-02-06 Thread Matthias Koenig
Signed-off-by: Matthias Koenig [EMAIL PROTECTED] --- Makefile.am|1 configure.ac |2 fsck/Makefile.am |7 fsck/base_device.c | 169 +++ fsck/fsck.8.in | 410 fsck/fsck.c| 1309

[PATCH 0/3] Move fsck from e2fsprogs to util-linux-ng

2008-02-06 Thread Matthias Koenig
Here is another attempt to move fsck over to the util-linux-ng tree. A similar attempt has been done previously by Christoph Hellwig some time ago. Patch 1 is the initial move with minor adjustments for the build system. Patch 2 adds support for the fsprobe library wrapper. Patch 3 adds a new

Re: [PATCH 0/3] Move fsck from e2fsprogs to util-linux-ng

2008-02-06 Thread Karel Zak
On Wed, Feb 06, 2008 at 12:38:59PM +0100, Matthias Koenig wrote: Here is another attempt to move fsck over to the util-linux-ng tree. A similar attempt has been done previously by Christoph Hellwig some time ago. Thanks (also thanks to Christoph)! I didn't forget about this task. It's still

Re: [PATCH] ext4: Fix circular locking dependency with migrate and rm.

2008-02-06 Thread Jan Kara
On Wed 06-02-08 16:30:04, Aneesh Kumar K.V wrote: We now take inode-i_mutex lock to prevent any update of the inode i_data field. Before we switch the inode format we take i_data_sem to prevent parallel read. === [ INFO: possible circular

Re: [PATCH 0/3] Move fsck from e2fsprogs to util-linux-ng

2008-02-06 Thread Theodore Tso
On Wed, Feb 06, 2008 at 01:56:51PM +0100, Karel Zak wrote: It would be nice to add a note fsck is deprecated in favor of fsck from util-linux-ng to RELEASE-NOTES in e2fsprogs. I don't want to deprecate fsck quite yet from e2fsprogs, because there are some ext4 issues with fsck (or more

Re: [PATCH 0/3] Move fsck from e2fsprogs to util-linux-ng

2008-02-06 Thread Karel Zak
On Wed, Feb 06, 2008 at 09:05:59AM -0500, Theodore Tso wrote: On Wed, Feb 06, 2008 at 01:56:51PM +0100, Karel Zak wrote: It would be nice to add a note fsck is deprecated in favor of fsck from util-linux-ng to RELEASE-NOTES in e2fsprogs. I don't want to deprecate fsck quite yet

Re: [RESEND] [PATCH] ext3,4:fdatasync should skip metadata writeout when overwriting

2008-02-06 Thread Jan Kara
Hi, Currently fdatasync is identical to fsync in ext3,4. I think fdatasync should skip journal flush in data=ordered and data=writeback mode when it overwrites to already-instantiated blocks on HDD. When I_DIRTY_DATASYNC flag is not set, fdatasync should skip journal writeout because

[PATCH] ext4: Fix DIO locking

2008-02-06 Thread Jan Kara
Hi, this patch fixes lock inversion in ext4 direct IO path. The similar patch has already been accepted for ext3. Mingming, will you put it into ext4 patch queue? Thanks. Honza -- Jan Kara [EMAIL PROTECTED] SUSE Labs, CR ---

Re: [PATCH 0/3] Move fsck from e2fsprogs to util-linux-ng

2008-02-06 Thread maximilian attems
On Wed, Feb 06, 2008 at 04:23:10PM +0100, Karel Zak wrote: I'm already working on vol_id + blkid merge http://git.kernel.org/?p=utils/util-linux-ng/util-linux-ng.git;a=shortlog;h=topic/fsprobe My plan is follow ideas and code from blkid and add a new low-level API for udev. That's

[PATCH] allocate struct ext4_allocation_context from a kmem cache to save stack space

2008-02-06 Thread Eric Sandeen
struct ext4_allocation_context is rather large, and this bloats the stack of many functions which use it. Allocating it from a named slab cache will alleviate this. For example, with this change (on top of the noinline patch sent earlier): -ext4_mb_new_blocks 200 +ext4_mb_new_blocks

Re: [PATCH] jbd: fix assertion failure in journal_next_log_block

2008-02-06 Thread Mingming Cao
On Tue, 2008-02-05 at 13:59 -0500, Josef Bacik wrote: On Tuesday 05 February 2008 12:27:31 pm Jan Kara wrote: Hello, Sorry for replying a bit late but I'm currently falling behind in maling-list reading... The way jbd tries to determine if there is enough space left on the

Re: [PATCH] ext4: Fix DIO locking

2008-02-06 Thread Mingming Cao
On Wed, 2008-02-06 at 17:06 +0100, Jan Kara wrote: Hi, this patch fixes lock inversion in ext4 direct IO path. The similar patch has already been accepted for ext3. Mingming, will you put it into ext4 patch queue? Thanks. Thanks! Added to the ext4 patch queue. Mingming

Re: BUG_ON at mballoc.c:3752

2008-02-06 Thread Dave Kleikamp
On Mon, 2008-02-04 at 11:30 +0530, Aneesh Kumar K.V wrote: 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

- ext2-change-the-default-behaviour-on-error.patch removed from -mm tree

2008-02-06 Thread akpm
The patch titled ext2: change the default behaviour on error has been removed from the -mm tree. Its filename was ext2-change-the-default-behaviour-on-error.patch This patch was dropped because it was merged into mainline or a subsystem tree The current -mm tree may be found at

Re: [PATCH 0/3] Move fsck from e2fsprogs to util-linux-ng

2008-02-06 Thread Kay Sievers
On Feb 6, 2008 3:05 PM, Theodore Tso [EMAIL PROTECTED] wrote: On Wed, Feb 06, 2008 at 01:56:51PM +0100, Karel Zak wrote: It would be nice to add a note fsck is deprecated in favor of fsck from util-linux-ng to RELEASE-NOTES in e2fsprogs. I don't want to deprecate fsck quite yet

- ext-use-ext_get_group_desc.patch removed from -mm tree

2008-02-06 Thread akpm
The patch titled ext[234]: use ext[234]_get_group_desc() has been removed from the -mm tree. Its filename was ext-use-ext_get_group_desc.patch This patch was dropped because it was merged into mainline or a subsystem tree The current -mm tree may be found at

- ext3-add-block-bitmap-validation.patch removed from -mm tree

2008-02-06 Thread akpm
The patch titled ext3: add block bitmap validation has been removed from the -mm tree. Its filename was ext3-add-block-bitmap-validation.patch This patch was dropped because it was merged into mainline or a subsystem tree The current -mm tree may be found at

- ext3-return-after-ext3_error-in-case-of-failures.patch removed from -mm tree

2008-02-06 Thread akpm
The patch titled ext3: return after ext3_error in case of failures has been removed from the -mm tree. Its filename was ext3-return-after-ext3_error-in-case-of-failures.patch This patch was dropped because it was merged into mainline or a subsystem tree The current -mm tree may be

- ext-remove-unused-argument-for-ext_find_goal.patch removed from -mm tree

2008-02-06 Thread akpm
The patch titled ext[234]: remove unused argument for ext[234]_find_goal() has been removed from the -mm tree. Its filename was ext-remove-unused-argument-for-ext_find_goal.patch This patch was dropped because it was merged into mainline or a subsystem tree The current -mm tree may

- ext3-change-the-default-behaviour-on-error.patch removed from -mm tree

2008-02-06 Thread akpm
The patch titled ext3: change the default behaviour on error has been removed from the -mm tree. Its filename was ext3-change-the-default-behaviour-on-error.patch This patch was dropped because it was merged into mainline or a subsystem tree The current -mm tree may be found at

- ext3-fix-lock-inversion-in-direct-io.patch removed from -mm tree

2008-02-06 Thread akpm
The patch titled ext3: fix lock inversion in direct IO has been removed from the -mm tree. Its filename was ext3-fix-lock-inversion-in-direct-io.patch This patch was dropped because it was merged into mainline or a subsystem tree The current -mm tree may be found at

- bkl-removal-remove-incorrect-comment-refering-to-lock_kernel-from-jbd-jbd2.patch removed from -mm tree

2008-02-06 Thread akpm
The patch titled BKL-removal: remove incorrect comment refering to lock_kernel() from jbd/jbd2 has been removed from the -mm tree. Its filename was bkl-removal-remove-incorrect-comment-refering-to-lock_kernel-from-jbd-jbd2.patch This patch was dropped because it was merged into

- ext2-add-block-bitmap-validation.patch removed from -mm tree

2008-02-06 Thread akpm
The patch titled ext2: add block bitmap validation has been removed from the -mm tree. Its filename was ext2-add-block-bitmap-validation.patch This patch was dropped because it was merged into mainline or a subsystem tree The current -mm tree may be found at

- ext-cleanup-ext_bg_num_gdb.patch removed from -mm tree

2008-02-06 Thread akpm
The patch titled ext[234]: cleanup ext[234]_bg_num_gdb() has been removed from the -mm tree. Its filename was ext-cleanup-ext_bg_num_gdb.patch This patch was dropped because it was merged into mainline or a subsystem tree The current -mm tree may be found at

- ext-fix-comment-for-nonexistent-variable.patch removed from -mm tree

2008-02-06 Thread akpm
The patch titled ext[234]: fix comment for nonexistent variable has been removed from the -mm tree. Its filename was ext-fix-comment-for-nonexistent-variable.patch This patch was dropped because it was merged into mainline or a subsystem tree The current -mm tree may be found at

[PATCH] ext3 can fail badly when device stops accepting BIO_RW_BARRIER requests.

2008-02-06 Thread Neil Brown
Some devices - notably dm and md - can change their behaviour in response to BIO_RW_BARRIER requests. They might start out accepting such requests but on reconfiguration, they find out that they cannot any more. ext3 (and other filesystems) deal with this by always testing if BIO_RW_BARRIER

+ ext3-can-fail-badly-when-device-stops-accepting-bio_rw_barrier-requests.patch added to -mm tree

2008-02-06 Thread akpm
The patch titled ext3 can fail badly when device stops accepting BIO_RW_BARRIER requests has been added to the -mm tree. Its filename is ext3-can-fail-badly-when-device-stops-accepting-bio_rw_barrier-requests.patch Before you just go and hit reply, please: a) Consider who else

- iget-stop-ext2-from-using-iget-and-read_inode-try-checkpatch-fixes.patch removed from -mm tree

2008-02-06 Thread akpm
The patch titled iget-stop-ext2-from-using-iget-and-read_inode-try-checkpatch-fixes has been removed from the -mm tree. Its filename was iget-stop-ext2-from-using-iget-and-read_inode-try-checkpatch-fixes.patch This patch was dropped because it was folded into

- iget-stop-ext3-from-using-iget-and-read_inode-try-checkpatch-fixes.patch removed from -mm tree

2008-02-06 Thread akpm
The patch titled iget-stop-ext3-from-using-iget-and-read_inode-try-checkpatch-fixes has been removed from the -mm tree. Its filename was iget-stop-ext3-from-using-iget-and-read_inode-try-checkpatch-fixes.patch This patch was dropped because it was folded into

[PATCH] ext4 can fail badly when device stops accepting BIO_RW_BARRIER requests.

2008-02-06 Thread Dave Kleikamp
Duplicating Neil Brown's jbd patch for jbd2. I guess this can go through the ext4 queue rather than straight into -mm. Neil's text: Some devices - notably dm and md - can change their behaviour in response to BIO_RW_BARRIER requests. They might start out accepting such requests but on

Re: [RESEND] [PATCH] ext3,4:fdatasync should skip metadata writeout when overwriting

2008-02-06 Thread Hisashi Hifumi
Signed-off-by :Hisashi Hifumi [EMAIL PROTECTED] Yes, the patch looks fine. You can add Acked-by: Jan Kara [EMAIL PROTECTED] if you wish. Honza Thank you for your comment. Please merge my patch. Thanks. [PATCH] ext3,4:fdatasync