Confused by journaling code in ext3_new_blocks()

2008-01-23 Thread Abhishek Rai
Hi, I have the following question related to the journaling code in ext3_new_blocks() function of fs/ext3/balloc.c, any help in this regard will be greatly appreciated. The code snippet below is taken from 2.6.24-rc8-mm1 but this code has changed little for a long time so it's likely that any

Re: regression: 100% io-wait with 2.6.24-rcX

2008-01-23 Thread Martin Knoblauch
- Original Message From: Alasdair G Kergon [EMAIL PROTECTED] To: Martin Knoblauch [EMAIL PROTECTED] Cc: Linus Torvalds [EMAIL PROTECTED]; Mel Gorman [EMAIL PROTECTED]; Fengguang Wu [EMAIL PROTECTED]; Mike Snitzer [EMAIL PROTECTED]; Peter Zijlstra [EMAIL PROTECTED]; [EMAIL

ext4-online-defrag-free-space-fragmentation.patch uses do_fsync()

2008-01-23 Thread Theodore Ts'o
I was trying to build ext4 as a module, and ran into problems because the online defrag patch is calling do_fsync() which is *not* an exported symbol, and so can not be called from a module. Looking at what the routine is doing, there's no reason to call do_fsync(), and in fact depending on the

Re: ext4-online-defrag-free-space-fragmentation.patch uses do_fsync()

2008-01-23 Thread Dave Kleikamp
diff --git a/fs/ext4/defrag.c b/fs/ext4/defrag.c index 4ef3dc0..19d2cfd 100644 --- a/fs/ext4/defrag.c +++ b/fs/ext4/defrag.c @@ -632,8 +632,9 @@ static int ext4_ext_defrag_victim(struct file *target_filp, } /* Sync journal blocks before reservation */ -

Re: ext4-online-defrag-free-space-fragmentation.patch uses do_fsync()

2008-01-23 Thread Theodore Tso
On Wed, Jan 23, 2008 at 08:10:20AM -0600, Dave Kleikamp wrote: I'd think you'd want to change the printk text as well. defrag: failed ext4_force_commit (%d)\n maybe? mmm, good catch, thanks. - Ted - To unsubscribe from this list: send the line

Re: [PATCH, RFC] Add new development flag to the ext4 filesystem

2008-01-23 Thread Theodore Tso
On Tue, Jan 22, 2008 at 09:55:37PM -0600, Eric Sandeen wrote: Overall, seems ok. One other question though, when ext4 is a fully-fledged production filesystem, and the flag requirement is gone, what stops ext3 filesystems from being silently mounted as ext4, just as happened with ext4dev

Re: [PATCH, RFC] Add new development flag to the ext4 filesystem

2008-01-23 Thread Theodore Tso
On Wed, Jan 23, 2008 at 11:04:35AM -0600, Eric Sandeen wrote: I just think that ext4.ko running ext3 filesystems needs to be under explicit control, and not something that happens, occasionally, accidentally, without the user/administrator requesting it. Least surprise, and all that...

[PATCH] Fix commit block write in JBD

2008-01-23 Thread Jan Kara
Hi, the patch below fixes preparation of commit block in journal_write_commit_record(). Obviously the bug doesn't really matter since nobody reported it so far but let's cleanup the code... Andrew, could you please queue it up? Thanks.

[PATCH] Fix commit block write in JBD2

2008-01-23 Thread Jan Kara
On Wed 23-01-08 20:09:43, Jan Kara wrote: Hi, the patch below fixes preparation of commit block in journal_write_commit_record(). Obviously the bug doesn't really matter since nobody reported it so far but let's cleanup the code... Andrew, could you please queue it up? Thanks. And the

Re: Confused by journaling code in ext3_new_blocks()

2008-01-23 Thread Jan Kara
Hello, I have the following question related to the journaling code in ext3_new_blocks() function of fs/ext3/balloc.c, any help in this regard will be greatly appreciated. The code snippet below is taken from 2.6.24-rc8-mm1 but this code has changed little for a long time so it's likely

Re: [PATCH] Fix commit block write in JBD2

2008-01-23 Thread Girish Shilamkar
Hi, The loop was removed in journal checksum patch. There had been a discussion (11 Jul 2007: [EXT4 set 8][PATCH 1/1]Add journal checksums) about this part of code as checksum info was added to commit block. Regards, Girish On Wed, 2008-01-23 at 20:10 +0100, Jan Kara wrote: On Wed

Re: [PATCH, RFC] Add new development flag to the ext4 filesystem

2008-01-23 Thread Andreas Dilger
On Jan 23, 2008 11:53 -0500, Theodore Tso wrote: Since I'm still hoping that some point in the future, fs/ext4 could subsume fs/ext3 so we don't have to worry about bug fixes going into fs/ext2 AND fs/ext3 AND fs/ext4, I have my own reasons for wanting that. If any newbie kernel hacker wants

Re: [PATCH] Fix commit block write in JBD2

2008-01-23 Thread Jan Kara
Hi, On Thu 24-01-08 02:48:41, Girish Shilamkar wrote: The loop was removed in journal checksum patch. There had been a discussion (11 Jul 2007: [EXT4 set 8][PATCH 1/1]Add journal checksums) about this part of code as checksum info was added to commit block. Ah, OK, thanks for

Re: [PATCH 33/49] ext4: Add the journal checksum feature

2008-01-23 Thread Andrew Morton
On Mon, 21 Jan 2008 22:02:12 -0500 Theodore Ts'o [EMAIL PROTECTED] wrote: From: Girish Shilamkar [EMAIL PROTECTED] The journal checksum feature adds two new flags i.e JBD2_FEATURE_INCOMPAT_ASYNC_COMMIT and JBD2_FEATURE_COMPAT_CHECKSUM. JBD2_FEATURE_CHECKSUM flag indicates that the commit

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

2008-01-23 Thread Andrew Morton
On Mon, 21 Jan 2008 22:02:02 -0500 Theodore Ts'o [EMAIL PROTECTED] wrote: +} +EXPORT_SYMBOL(bh_uptodate_or_lock); +/** Missing newline. + * bh_submit_read: Submit a locked buffer for reading + * @bh: struct buffer_head + * + * Returns a negative error + */ +int bh_submit_read(struct

Re: [PATCH 24/49] ext4: add block bitmap validation

2008-01-23 Thread Andrew Morton
On Mon, 21 Jan 2008 22:02:03 -0500 Theodore Ts'o [EMAIL PROTECTED] wrote: + if (bh_submit_read(bh) 0) { + brelse(bh); + ext4_error(sb, __FUNCTION__, Cannot read block bitmap - - block_group = %lu, block_bitmap =

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

2008-01-23 Thread Andrew Morton
On Mon, 21 Jan 2008 22:02:20 -0500 Theodore Ts'o [EMAIL PROTECTED] wrote: From: Alex Tomas [EMAIL PROTECTED] Signed-off-by: Alex Tomas [EMAIL PROTECTED] Signed-off-by: Andreas Dilger [EMAIL PROTECTED] Signed-off-by: Aneesh Kumar K.V [EMAIL PROTECTED] Signed-off-by: Eric Sandeen [EMAIL

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

2008-01-23 Thread Andrew Morton
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 buffer_head *bh, + int create, int extend_disksize) +{ +

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

2008-01-23 Thread Andrew Morton
On Mon, 21 Jan 2008 22:02:15 -0500 Theodore Ts'o [EMAIL PROTECTED] wrote: The below patch add ioctl for migrating ext3 indirect block mapped inode to ext4 extent mapped inode. This patch adds lots of weird and inexplicable single- and double-newlines in inappropriate places. However it

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

2008-01-23 Thread Andreas Dilger
On Jan 23, 2008 14:07 -0800, Andrew Morton wrote: +#define mb_correct_addr_and_bit(bit, addr) \ +{ \ + bit += ((unsigned long) addr 3UL) 3; \ + addr = (void *) ((unsigned long) addr ~3UL); \ +} Why do these exist?

HELLO

2008-01-23 Thread fred ogoja
Hello, I want to solicit your attention in helping and processing and securing on my behalf certain funds which i cannot process because of my position in Government. The purpose of my contacting you is because I need a foreigner to help me handle this transaction When you reply this

Re: ext4-online-defrag-free-space-fragmentation.patch uses do_fsync()

2008-01-23 Thread Takashi Sato
Hi, I was trying to build ext4 as a module, and ran into problems because the online defrag patch is calling do_fsync() which is *not* an exported symbol, and so can not be called from a module. Looking at what the routine is doing, there's no reason to call do_fsync(), and in fact depending

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

2008-01-23 Thread Aneesh Kumar K.V
On Wed, Jan 23, 2008 at 02:06:48PM -0800, Andrew Morton wrote: On Mon, 21 Jan 2008 22:02:02 -0500 Theodore Ts'o [EMAIL PROTECTED] wrote: +} +EXPORT_SYMBOL(bh_uptodate_or_lock); +/** Missing newline. + * bh_submit_read: Submit a locked buffer for reading + * @bh: struct

Re: [CALL FOR TESTING] Make Ext3 fsck way faster [2.6.24-rc6 -mm patch]

2008-01-23 Thread Andrew Morton
On Wed, 23 Jan 2008 04:12:16 -0500 Abhishek Rai [EMAIL PROTECTED] wrote: I'm wondering about the interaction between this code and the buffer_boundary() logic. I guess we should disable the buffer_boundary() handling when this code is in effect. Have you reviewed and tested that aspect?

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

2008-01-23 Thread Aneesh Kumar K.V
On Wed, Jan 23, 2008 at 02:07:27PM -0800, Andrew Morton wrote: On Mon, 21 Jan 2008 22:02:20 -0500 Theodore Ts'o [EMAIL PROTECTED] wrote: From: Alex Tomas [EMAIL PROTECTED] Signed-off-by: Alex Tomas [EMAIL PROTECTED] Signed-off-by: Andreas Dilger [EMAIL PROTECTED] Signed-off-by: