Re: [PATCH v3 0/8] Support for transparent PUD pages for DAX files

2016-01-21 Thread mingming cao
On 01/08/2016 11:49 AM, Matthew Wilcox wrote: > From: Matthew Wilcox > > Andrew, I think this is ready for a spin in -mm. > > v3: Rebased against current mmtom > v2: Reduced churn in filesystems by switching to ->huge_fault interface > Addressed concerns from Kirill > > We have customer

Re: [PATCH v3 0/8] Support for transparent PUD pages for DAX files

2016-01-21 Thread mingming cao
On 01/08/2016 11:49 AM, Matthew Wilcox wrote: > From: Matthew Wilcox > > Andrew, I think this is ready for a spin in -mm. > > v3: Rebased against current mmtom > v2: Reduced churn in filesystems by switching to ->huge_fault interface > Addressed concerns from Kirill >

Re: [PATCH resend] ext2/3/4: convert byte order of constant instead of variable

2008-02-14 Thread Mingming Cao
On Thu, 2008-02-14 at 14:20 -0800, Andrew Morton wrote: > On Sun, 10 Feb 2008 11:10:15 +0100 > Marcin Slusarz <[EMAIL PROTECTED]> wrote: > > > fs/ext2/super.c |8 +++- > > fs/ext3/super.c |2 +- > > fs/ext4/super.c |2 +- > > Please don't bundle the filesystem patches in this

Re: [PATCH resend] ext2/3/4: convert byte order of constant instead of variable

2008-02-14 Thread Mingming Cao
On Thu, 2008-02-14 at 14:20 -0800, Andrew Morton wrote: On Sun, 10 Feb 2008 11:10:15 +0100 Marcin Slusarz [EMAIL PROTECTED] wrote: fs/ext2/super.c |8 +++- fs/ext3/super.c |2 +- fs/ext4/super.c |2 +- Please don't bundle the filesystem patches in this manner. I split

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

2008-02-07 Thread Mingming Cao
On Wed, 2008-02-06 at 22:25 -0600, Dave Kleikamp wrote: > Duplicating Neil Brown's jbd patch for jbd2. I guess this can go > through the ext4 queue rather than straight into -mm. > Checked-in. Thanks Shaggy and Neil. Mingming > Neil's text: > > Some devices - notably dm and md - can change

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

2008-02-07 Thread Mingming Cao
On Wed, 2008-02-06 at 22:25 -0600, Dave Kleikamp wrote: Duplicating Neil Brown's jbd patch for jbd2. I guess this can go through the ext4 queue rather than straight into -mm. Checked-in. Thanks Shaggy and Neil. Mingming Neil's text: Some devices - notably dm and md - can change their

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

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

2008-01-31 Thread Mingming Cao
On Thu, 2008-01-31 at 16:52 -0500, Josef Bacik wrote: > On Thu, Jan 31, 2008 at 12:35:43PM -0700, Andreas Dilger wrote: > > On Jan 31, 2008 11:14 -0500, Josef Bacik wrote: > > [snip excellent analysis] > > > So you get into this situation where > > > t_nr_buffers (the actual number of buffers

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

2008-01-31 Thread Mingming Cao
On Thu, 2008-01-31 at 16:52 -0500, Josef Bacik wrote: On Thu, Jan 31, 2008 at 12:35:43PM -0700, Andreas Dilger wrote: On Jan 31, 2008 11:14 -0500, Josef Bacik wrote: [snip excellent analysis] So you get into this situation where t_nr_buffers (the actual number of buffers that are on

Re: [patch 12/26] mount options: fix ext4

2008-01-25 Thread Mingming Cao
On Thu, 2008-01-24 at 20:33 +0100, Miklos Szeredi wrote: > plain text document attachment (ext4_opts.patch) > From: Miklos Szeredi <[EMAIL PROTECTED]> > > Add stripe= option to /proc/mounts for ext4 filesystems. > > Signed-off-by: Miklos Szeredi <[EMAIL PROTECTED]> > --- > > Index:

Re: [patch 12/26] mount options: fix ext4

2008-01-25 Thread Mingming Cao
On Thu, 2008-01-24 at 20:33 +0100, Miklos Szeredi wrote: plain text document attachment (ext4_opts.patch) From: Miklos Szeredi [EMAIL PROTECTED] Add stripe= option to /proc/mounts for ext4 filesystems. Signed-off-by: Miklos Szeredi [EMAIL PROTECTED] --- Index: linux/fs/ext4/super.c

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

2008-01-24 Thread Mingming Cao
> + brelse(bh); > > etc > Thanks, Updated patch below: ext4: Add the journal checksum feature From: Girish Shilamkar <[EMAIL PROTECTED]> The journal checksum feature adds two new flags i.e JBD2_FEATURE_INCOMPAT_ASYNC_COMMIT and JBD2_FEATURE_COM

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

2008-01-24 Thread Mingming Cao
PROTECTED] Signed-off-by: Girish Shilamkar [EMAIL PROTECTED] Signed-off-by: Dave Kleikamp [EMAIL PROTECTED] Signed-off-by: Mingming Cao [EMAIL PROTECTED] --- Documentation/filesystems/ext4.txt | 10 + fs/Kconfig |1 fs/ext4/super.c| 25 fs

Re: [PATCH] Shrink ext3_inode_info by 8 bytes for !POSIX_ACL.

2008-01-18 Thread Mingming Cao
On Sat, 2008-01-12 at 21:35 +0100, Indan Zupancic wrote: > i_file_acl and i_dir_acl aren't always needed. > > With certain configs this makes 10 ext3_inode_cache objects fit in > one slab instead of the current 9, as the size shrinks from 416 to > 408 bytes for 32 bit, !POSIX_ACL and

Re: [PATCH] Shrink ext3_inode_info by 8 bytes for !POSIX_ACL.

2008-01-18 Thread Mingming Cao
On Sat, 2008-01-12 at 21:35 +0100, Indan Zupancic wrote: i_file_acl and i_dir_acl aren't always needed. With certain configs this makes 10 ext3_inode_cache objects fit in one slab instead of the current 9, as the size shrinks from 416 to 408 bytes for 32 bit, !POSIX_ACL and !EXT3_FS_XATTR

[PATCH 3/4]JBD2: user of the jiffies rounding code

2008-01-17 Thread Mingming Cao
up to somewhere closer to 6 seconds) Signed-off-by: Mingming Cao <[EMAIL PROTECTED]> --- --- fs/jbd2/transaction.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux-2.6.24-rc7/fs/jbd2/transaction.c === --- l

[PATCH 2/4]JBD2: Group short-lived and reclaimable kernel allocations

2008-01-17 Thread Mingming Cao
JBD2: Group short-lived and reclaimable kernel allocations From: Mingming Cao <[EMAIL PROTECTED]> Ported from JBD to JBD2 From: Mel Gorman <[EMAIL PROTECTED]> Date: Tue, 16 Oct 2007 08:25:52 + (-0700) Subject: Group short-lived and reclai

[PATCH 4/4]JBD2: sparse pointer use of zero as null

2008-01-17 Thread Mingming Cao
Ported from upstream jbd changes to jbd2 sparse pointer use of zero as null Get rid of sparse related warnings from places that use integer as NULL pointer. Signed-off-by: Mingming Cao <[EMAIL PROTECTED]> --- fs/jbd2/transaction.c | 12 ++-- 1 file changed, 6 insertions

[PATCH 1/4]jbd2: port jbd lockdep support to jbd2

2008-01-17 Thread Mingming Cao
: port jbd lockdep support to jbd2 > Except lockdep doesn't know about journal_start(), which has ranking > requirements similar to a semaphore. Signed-off-by: Mingming Cao <[EMAIL PROTECTED]> --- fs/jbd2/transaction.c | 11 +++ include/linux/jbd2.h |4 2 files

[PATCH 2/4]JBD2: Group short-lived and reclaimable kernel allocations

2008-01-17 Thread Mingming Cao
JBD2: Group short-lived and reclaimable kernel allocations From: Mingming Cao [EMAIL PROTECTED] Ported from JBD to JBD2 From: Mel Gorman [EMAIL PROTECTED] Date: Tue, 16 Oct 2007 08:25:52 + (-0700) Subject: Group short-lived and reclaimable kernel allocations X

[PATCH 1/4]jbd2: port jbd lockdep support to jbd2

2008-01-17 Thread Mingming Cao
: port jbd lockdep support to jbd2 Except lockdep doesn't know about journal_start(), which has ranking requirements similar to a semaphore. Signed-off-by: Mingming Cao [EMAIL PROTECTED] --- fs/jbd2/transaction.c | 11 +++ include/linux/jbd2.h |4 2 files changed, 15

[PATCH 4/4]JBD2: sparse pointer use of zero as null

2008-01-17 Thread Mingming Cao
Ported from upstream jbd changes to jbd2 sparse pointer use of zero as null Get rid of sparse related warnings from places that use integer as NULL pointer. Signed-off-by: Mingming Cao [EMAIL PROTECTED] --- fs/jbd2/transaction.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions

[PATCH 3/4]JBD2: user of the jiffies rounding code

2008-01-17 Thread Mingming Cao
-by: Mingming Cao [EMAIL PROTECTED] --- --- fs/jbd2/transaction.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux-2.6.24-rc7/fs/jbd2/transaction.c === --- linux-2.6.24-rc7.orig/fs/jbd2/transaction.c 2008-01-16

Re: [EXT4 set 6][PATCH 1/1]Export jbd stats through procfs

2007-11-30 Thread Mingming Cao
On Fri, 2007-11-30 at 17:08 -0600, Eric Sandeen wrote: > Mingming Cao wrote: > > [PATCH] jbd2 stats through procfs > > > > The patch below updates the jbd stats patch to 2.6.20/jbd2. > > The initial patch was posted by Alex Tomas in December 2005 > >

Re: [EXT4 set 6][PATCH 1/1]Export jbd stats through procfs

2007-11-30 Thread Mingming Cao
On Fri, 2007-11-30 at 17:08 -0600, Eric Sandeen wrote: Mingming Cao wrote: [PATCH] jbd2 stats through procfs The patch below updates the jbd stats patch to 2.6.20/jbd2. The initial patch was posted by Alex Tomas in December 2005 (http://marc.info/?l=linux-ext4m=113538565128617w=2

Re: [PATCH] ext4: dir inode reservation V3

2007-11-20 Thread Mingming Cao
On Tue, 2007-11-20 at 12:14 +0800, Coly Li wrote: > Thanks for the feedback :-) > > Mingming Cao wrote: > > On Tue, 2007-11-13 at 22:12 +0800, Coly Li wrote: > >> Basic idea of my dir inode reservation patch can be found here, > >> http://lists.openwall.net/li

Re: [PATCH] ext4: dir inode reservation V3

2007-11-20 Thread Mingming Cao
On Tue, 2007-11-20 at 12:14 +0800, Coly Li wrote: Thanks for the feedback :-) Mingming Cao wrote: On Tue, 2007-11-13 at 22:12 +0800, Coly Li wrote: Basic idea of my dir inode reservation patch can be found here, http://lists.openwall.net/linux-ext4/2007/11/05/3 1, What does dir inode

Re: [PATCH] ext4: dir inode reservation V3

2007-11-19 Thread Mingming Cao
On Tue, 2007-11-13 at 22:12 +0800, Coly Li wrote: > Basic idea of my dir inode reservation patch can be found here, > http://lists.openwall.net/linux-ext4/2007/11/05/3 > > 1, What does dir inode reservation do > Dir inode reservation tries to reserve several inodes in inodes table for a >

Re: [PATCH] ext4: dir inode reservation V3

2007-11-19 Thread Mingming Cao
On Tue, 2007-11-13 at 22:12 +0800, Coly Li wrote: Basic idea of my dir inode reservation patch can be found here, http://lists.openwall.net/linux-ext4/2007/11/05/3 1, What does dir inode reservation do Dir inode reservation tries to reserve several inodes in inodes table for a directory

Re: [2.6 patch] ext4/super.c: fix #ifdef's

2007-11-05 Thread Mingming Cao
Acked-by: Mingmming Cao <[EMAIL PROTECTED]> Ted, I added this patch in ext4 patch queue. On Mon, 2007-11-05 at 18:07 +0100, Adrian Bunk wrote: > This patch fixes the names of two variables in #ifdef's. > > Based on a report by Robert P. J. Day. > > Signed-off-by: Adrian Bunk <[EMAIL

Re: [2.6 patch] ext4/super.c: fix #ifdef's

2007-11-05 Thread Mingming Cao
Acked-by: Mingmming Cao [EMAIL PROTECTED] Ted, I added this patch in ext4 patch queue. On Mon, 2007-11-05 at 18:07 +0100, Adrian Bunk wrote: This patch fixes the names of two variables in #ifdef's. Based on a report by Robert P. J. Day. Signed-off-by: Adrian Bunk [EMAIL PROTECTED] ---

Re: [PATCH 1/2] i_version update - vfs part

2007-10-25 Thread Mingming Cao
On Thu, 2007-10-25 at 19:04 +0200, Cordenner jean noel wrote: > Hi, > > This is an update of the previous patches on the ext4 git tree, the 2 > coming patches applies at the end of the current ext4-patch-queue, and > replaces the inode-version related patches: > 64-bit-i_version.patch >

Re: [PATCH 1/2] i_version update - vfs part

2007-10-25 Thread Mingming Cao
On Thu, 2007-10-25 at 19:04 +0200, Cordenner jean noel wrote: Hi, This is an update of the previous patches on the ext4 git tree, the 2 coming patches applies at the end of the current ext4-patch-queue, and replaces the inode-version related patches: 64-bit-i_version.patch

Re: [PATCH 2/2] ext2: Avoid rec_len overflow with 64KB block size

2007-10-18 Thread Mingming Cao
On Wed, 2007-10-17 at 21:09 -0700, Andrew Morton wrote: > On Thu, 11 Oct 2007 13:18:49 +0200 Jan Kara <[EMAIL PROTECTED]> wrote: > > > With 64KB blocksize, a directory entry can have size 64KB which does not fit > > into 16 bits we have for entry lenght. So we store 0x instead and > >

Re: [PATCH 2/2] ext2: Avoid rec_len overflow with 64KB block size

2007-10-18 Thread Mingming Cao
On Wed, 2007-10-17 at 21:09 -0700, Andrew Morton wrote: On Thu, 11 Oct 2007 13:18:49 +0200 Jan Kara [EMAIL PROTECTED] wrote: With 64KB blocksize, a directory entry can have size 64KB which does not fit into 16 bits we have for entry lenght. So we store 0x instead and convert value

Re: [PATCH] jbd: JBD replace jbd_kmalloc with kmalloc

2007-10-08 Thread Mingming Cao
On Mon, 2007-10-08 at 10:46 -0700, Christoph Lameter wrote: > On Fri, 5 Oct 2007, Mingming Cao wrote: > > > Index: linux-2.6.23-rc9/fs/jbd/transaction.c > > === > > --- linux-2.6.23-rc9.orig/fs/jbd/trans

Re: [PATCH] jbd: JBD replace jbd_kmalloc with kmalloc

2007-10-08 Thread Mingming Cao
On Mon, 2007-10-08 at 10:46 -0700, Christoph Lameter wrote: On Fri, 5 Oct 2007, Mingming Cao wrote: Index: linux-2.6.23-rc9/fs/jbd/transaction.c === --- linux-2.6.23-rc9.orig/fs/jbd/transaction.c 2007-10-05 12:08

Re: [PATCH 1/2] i_version update - vfs part

2007-10-05 Thread Mingming Cao
On Fri, 2007-10-05 at 17:28 +0200, Cordenner jean noel wrote: > Hi, > Hi Jean Noel, > This is an update of the i_version patch. Just to make sure, is this vfs patch and next ext4 patch together going to replace the 4 inode-version related patches currently in ext4-patch-queue (and git tree)?

Re: [PATCH 2/2] i_version update - ext4 part

2007-10-05 Thread Mingming Cao
On Fri, 2007-10-05 at 17:28 +0200, Cordenner jean noel wrote: > This patch update the i_version field of the inode and add a mount > option to enable this feature. The other condition to enable this > feature is that the inode size should be 256-bytes. > > Signed-off-by: Jean Noel Cordenner

[PATCH] jbd2: JBD replace jbd2_kmalloc with kmalloc

2007-10-05 Thread Mingming Cao
JBD2: JBD2 replace jbd2_kmalloc with kmalloc From: Mingming Cao <[EMAIL PROTECTED]> This patch cleans up jbd_kmalloc and replace it with kmalloc directly Signed-off-by: Mingming Cao <[EMAIL PROTECTED]> --- fs/jbd2/journal.c | 11 +-- fs/jbd2/transaction.c |4 +

[PATCH] jbd: JBD replace jbd_kmalloc with kmalloc

2007-10-05 Thread Mingming Cao
JBD: JBD replace jbd_kmalloc with kmalloc From: Mingming Cao <[EMAIL PROTECTED]> This patch cleans up jbd_kmalloc and replace it with kmalloc directly Signed-off-by: Mingming Cao <[EMAIL PROTECTED]> --- fs/jbd/journal.c | 11 +-- fs/jbd/transaction.c |4 ++-- i

[PATCH] jbd2: JBD2 slab allocation cleanups

2007-10-05 Thread Mingming Cao
JBD2: jbd2 slab allocation cleanups From: Mingming Cao <[EMAIL PROTECTED]> JBD2: Replace slab allocations with page allocations JBD2 allocate memory for committed_data and frozen_data from slab. However JBD2 should not pass slab pages down to the block layer. Use page allocator pages i

[PATCH] jbd: JBD slab allocation cleanups

2007-10-05 Thread Mingming Cao
JBD: JBD slab allocation cleanups From: Mingming Cao <[EMAIL PROTECTED]> JBD: Replace slab allocations with page allocations JBD allocate memory for committed_data and frozen_data from slab. However JBD should not pass slab pages down to the block layer. Use page allocator pages i

Re: [PATCH] jbd/jbd2: JBD memory allocation cleanups

2007-10-05 Thread Mingming Cao
On Thu, 2007-10-04 at 07:52 +0100, Christoph Hellwig wrote: > On Thu, Oct 04, 2007 at 01:50:36AM -0400, Theodore Ts'o wrote: > > From: Mingming Cao <[EMAIL PROTECTED]> > > > > JBD: Replace slab allocations with page cache allocations > > It's page alloca

Re: 2.6.23-rc9: Oops in cache_alloc_refill() mm/slab.c

2007-10-05 Thread Mingming Cao
Forwarded Message From: Valerie Clement <[EMAIL PROTECTED]> To: Linux Kernel Mailing List Subject: 2.6.23-rc9: Oops in cache_alloc_refill() mm/slab.c Date: Thu, 04 Oct 2007 18:13:46 +0200 While running ffsb tests on my ext4 filesystem, I got an Oops in cache_alloc_refill(). I

Re: 2.6.23-rc9: Oops in cache_alloc_refill() mm/slab.c

2007-10-05 Thread Mingming Cao
On Fri, 2007-10-05 at 07:54 -0700, Badari Pulavarty wrote: > On Fri, 2007-10-05 at 15:41 +0200, Valerie Clement wrote: > > Badari Pulavarty wrote: > > > On Thu, 2007-10-04 at 18:13 +0200, Valerie Clement wrote: > > >> While running ffsb tests on my ext4 filesystem, I got an Oops in > > >>

Re: 2.6.23-rc9: Oops in cache_alloc_refill() mm/slab.c

2007-10-05 Thread Mingming Cao
On Fri, 2007-10-05 at 07:54 -0700, Badari Pulavarty wrote: On Fri, 2007-10-05 at 15:41 +0200, Valerie Clement wrote: Badari Pulavarty wrote: On Thu, 2007-10-04 at 18:13 +0200, Valerie Clement wrote: While running ffsb tests on my ext4 filesystem, I got an Oops in cache_alloc_refill().

Re: 2.6.23-rc9: Oops in cache_alloc_refill() mm/slab.c

2007-10-05 Thread Mingming Cao
Forwarded Message From: Valerie Clement [EMAIL PROTECTED] To: Linux Kernel Mailing List linux-kernel@vger.kernel.org Subject: 2.6.23-rc9: Oops in cache_alloc_refill() mm/slab.c Date: Thu, 04 Oct 2007 18:13:46 +0200 While running ffsb tests on my ext4 filesystem, I got an Oops

Re: [PATCH] jbd/jbd2: JBD memory allocation cleanups

2007-10-05 Thread Mingming Cao
On Thu, 2007-10-04 at 07:52 +0100, Christoph Hellwig wrote: On Thu, Oct 04, 2007 at 01:50:36AM -0400, Theodore Ts'o wrote: From: Mingming Cao [EMAIL PROTECTED] JBD: Replace slab allocations with page cache allocations It's page allocations, not page cache allocations. Also

[PATCH] jbd: JBD slab allocation cleanups

2007-10-05 Thread Mingming Cao
JBD: JBD slab allocation cleanups From: Mingming Cao [EMAIL PROTECTED] JBD: Replace slab allocations with page allocations JBD allocate memory for committed_data and frozen_data from slab. However JBD should not pass slab pages down to the block layer. Use page allocator pages instead

[PATCH] jbd2: JBD2 slab allocation cleanups

2007-10-05 Thread Mingming Cao
JBD2: jbd2 slab allocation cleanups From: Mingming Cao [EMAIL PROTECTED] JBD2: Replace slab allocations with page allocations JBD2 allocate memory for committed_data and frozen_data from slab. However JBD2 should not pass slab pages down to the block layer. Use page allocator pages instead

[PATCH] jbd: JBD replace jbd_kmalloc with kmalloc

2007-10-05 Thread Mingming Cao
JBD: JBD replace jbd_kmalloc with kmalloc From: Mingming Cao [EMAIL PROTECTED] This patch cleans up jbd_kmalloc and replace it with kmalloc directly Signed-off-by: Mingming Cao [EMAIL PROTECTED] --- fs/jbd/journal.c | 11 +-- fs/jbd/transaction.c |4 ++-- include/linux/jbd.h

[PATCH] jbd2: JBD replace jbd2_kmalloc with kmalloc

2007-10-05 Thread Mingming Cao
JBD2: JBD2 replace jbd2_kmalloc with kmalloc From: Mingming Cao [EMAIL PROTECTED] This patch cleans up jbd_kmalloc and replace it with kmalloc directly Signed-off-by: Mingming Cao [EMAIL PROTECTED] --- fs/jbd2/journal.c | 11 +-- fs/jbd2/transaction.c |4 ++-- include/linux

Re: [PATCH 2/2] i_version update - ext4 part

2007-10-05 Thread Mingming Cao
On Fri, 2007-10-05 at 17:28 +0200, Cordenner jean noel wrote: This patch update the i_version field of the inode and add a mount option to enable this feature. The other condition to enable this feature is that the inode size should be 256-bytes. Signed-off-by: Jean Noel Cordenner [EMAIL

Re: [PATCH 1/2] i_version update - vfs part

2007-10-05 Thread Mingming Cao
On Fri, 2007-10-05 at 17:28 +0200, Cordenner jean noel wrote: Hi, Hi Jean Noel, This is an update of the i_version patch. Just to make sure, is this vfs patch and next ext4 patch together going to replace the 4 inode-version related patches currently in ext4-patch-queue (and git tree)?

[PATCH 1/2] ext3: Support large blocksize up to PAGESIZE

2007-10-01 Thread Mingming Cao
t3, and able to handle empty directory block. Signed-off-by: Takashi Sato <[EMAIL PROTECTED]> Signed-off-by: Mingming Cao <[EMAIL PROTECTED]> --- fs/ext3/super.c |6 +- include/linux/ext3_fs.h |4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/f

[PATCH 2/2] ext3: Avoid rec_len overflow with 64KB block size

2007-10-01 Thread Mingming Cao
h also converts some places to use ext3_next_entry() when we are changing them anyway. Signed-off-by: Jan Kara <[EMAIL PROTECTED]> Signed-off-by: Mingming Cao <[EMAIL PROTECTED]> --- fs/ext3/dir.c | 10 +++-- fs/ext3/name

[PATCH 2/2] ext2: Avoid rec_len overflow with 64KB block size

2007-10-01 Thread Mingming Cao
ed-off-by: Jan Kara <[EMAIL PROTECTED]> Signed-off-by: Mingming Cao <[EMAIL PROTECTED]> --- fs/ext2/dir.c | 43 +++ include/linux/ext2_fs.h |1 + 2 files changed, 32 insertions(+), 12 deletions(-) diff --git a/fs/ext2/dir.c b/f

[PATCH 1/2] ext2: Support large blocksize up to PAGESIZE

2007-10-01 Thread Mingming Cao
t2, and able to handle empty directory block. Please consider to include to mm tree. Signed-off-by: Takashi Sato <[EMAIL PROTECTED]> Signed-off-by: Mingming Cao <[EMAIL PROTECTED]> --- fs/ext2/super.c |3 ++- include/linux/ext2_fs.h |4 ++-- 2 files changed, 4 insertions(+

[PATCH 2/2] ext4: Avoid rec_len overflow with 64KB block size

2007-10-01 Thread Mingming Cao
h also converts some places to use ext4_next_entry() when we are changing them anyway. Signed-off-by: Jan Kara <[EMAIL PROTECTED]> Signed-off-by: Mingming Cao <[EMAIL PROTECTED]> --- fs/ext4/dir.c | 12 --- fs/ext4/name

[PATCH 1/2] ext4: Support large blocksize up to PAGESIZE

2007-10-01 Thread Mingming Cao
ev, and able to handle empty directory block. Patch consider to be merge to 2.6.24-rc1. Signed-off-by: Takashi Sato <[EMAIL PROTECTED]> Signed-off-by: Mingming Cao <[EMAIL PROTECTED]> --- fs/ext4/super.c |5 + include/linux/ext4_fs.h |4 ++-- 2 files changed, 7 in

[PATCH 1/2] ext4: Support large blocksize up to PAGESIZE

2007-10-01 Thread Mingming Cao
to handle empty directory block. Patch consider to be merge to 2.6.24-rc1. Signed-off-by: Takashi Sato [EMAIL PROTECTED] Signed-off-by: Mingming Cao [EMAIL PROTECTED] --- fs/ext4/super.c |5 + include/linux/ext4_fs.h |4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff

[PATCH 2/2] ext4: Avoid rec_len overflow with 64KB block size

2007-10-01 Thread Mingming Cao
converts some places to use ext4_next_entry() when we are changing them anyway. Signed-off-by: Jan Kara [EMAIL PROTECTED] Signed-off-by: Mingming Cao [EMAIL PROTECTED] --- fs/ext4/dir.c | 12 --- fs/ext4/namei.c | 76 ++- include

[PATCH 1/2] ext2: Support large blocksize up to PAGESIZE

2007-10-01 Thread Mingming Cao
empty directory block. Please consider to include to mm tree. Signed-off-by: Takashi Sato [EMAIL PROTECTED] Signed-off-by: Mingming Cao [EMAIL PROTECTED] --- fs/ext2/super.c |3 ++- include/linux/ext2_fs.h |4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/fs

[PATCH 2/2] ext2: Avoid rec_len overflow with 64KB block size

2007-10-01 Thread Mingming Cao
-by: Jan Kara [EMAIL PROTECTED] Signed-off-by: Mingming Cao [EMAIL PROTECTED] --- fs/ext2/dir.c | 43 +++ include/linux/ext2_fs.h |1 + 2 files changed, 32 insertions(+), 12 deletions(-) diff --git a/fs/ext2/dir.c b/fs/ext2/dir.c index 2bf49d7

[PATCH 1/2] ext3: Support large blocksize up to PAGESIZE

2007-10-01 Thread Mingming Cao
empty directory block. Signed-off-by: Takashi Sato [EMAIL PROTECTED] Signed-off-by: Mingming Cao [EMAIL PROTECTED] --- fs/ext3/super.c |6 +- include/linux/ext3_fs.h |4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/fs/ext3/super.c b/fs/ext3/super.c index

[PATCH 2/2] ext3: Avoid rec_len overflow with 64KB block size

2007-10-01 Thread Mingming Cao
converts some places to use ext3_next_entry() when we are changing them anyway. Signed-off-by: Jan Kara [EMAIL PROTECTED] Signed-off-by: Mingming Cao [EMAIL PROTECTED] --- fs/ext3/dir.c | 10 +++-- fs/ext3/namei.c | 90 ++- include

Re: kernel Oops in ext3 code

2007-09-28 Thread Mingming Cao
> BUG: unable to handle kernel paging request at virtual address 104b > printing eip: > c0195bd3 > *pde = > Oops: [#1] > PREEMPT SMP > Modules linked in: vboxdrv binfmt_misc fuse coretemp hwmon gspca videodev > v4l2_common v4l1_compat iwl3945 mac80211 tifm_7xx1 tifm_core

Re: kernel Oops in ext3 code

2007-09-28 Thread Mingming Cao
BUG: unable to handle kernel paging request at virtual address 104b printing eip: c0195bd3 *pde = Oops: [#1] PREEMPT SMP Modules linked in: vboxdrv binfmt_misc fuse coretemp hwmon gspca videodev v4l2_common v4l1_compat iwl3945 mac80211 tifm_7xx1 tifm_core joydev

Re: kernel Oops in ext3 code

2007-09-27 Thread Mingming Cao
Hi, Could you please sent the objdump of the ext4_discard_reservation function? It doesn't match what I see here. Thanks, Mingming On Thu, 2007-09-27 at 12:31 +0200, [EMAIL PROTECTED] wrote: > Hi all! > > (Please Cc) > > kernel 2.6.23-rc6 > Debian/sid > > kernel ooops: > > BUG: unable to

Re: kernel Oops in ext3 code

2007-09-27 Thread Mingming Cao
Hi, Could you please sent the objdump of the ext4_discard_reservation function? It doesn't match what I see here. Thanks, Mingming On Thu, 2007-09-27 at 12:31 +0200, [EMAIL PROTECTED] wrote: Hi all! (Please Cc) kernel 2.6.23-rc6 Debian/sid kernel ooops: BUG: unable to handle kernel

Re: [PATCH] JBD/ext34 cleanups: convert to kzalloc

2007-09-26 Thread Mingming Cao
On Wed, 2007-09-26 at 12:54 -0700, Andrew Morton wrote: > On Fri, 21 Sep 2007 16:13:56 -0700 > Mingming Cao <[EMAIL PROTECTED]> wrote: > > > Convert kmalloc to kzalloc() and get rid of the memset(). > > I split this into separate ext3/jbd and ext4/jbd2 patches. It's

Re: [PATCH] JBD/ext34 cleanups: convert to kzalloc

2007-09-26 Thread Mingming Cao
On Wed, 2007-09-26 at 12:54 -0700, Andrew Morton wrote: On Fri, 21 Sep 2007 16:13:56 -0700 Mingming Cao [EMAIL PROTECTED] wrote: Convert kmalloc to kzalloc() and get rid of the memset(). I split this into separate ext3/jbd and ext4/jbd2 patches. It's generally better to raise separate

[PATCH] JBD2/ext4 naming cleanup

2007-09-21 Thread Mingming Cao
JBD2 naming cleanup From: Mingming Cao <[EMAIL PROTECTED]> change micros name from JBD_XXX to JBD2_XXX in JBD2/Ext4 Signed-off-by: Mingming Cao <[EMAIL PROTECTED]> --- fs/ext4/extents.c |2 +- fs/ext4/super.c |2 +- fs/jbd2/commit.c |2

[PATCH] JBD/ext34 cleanups: convert to kzalloc

2007-09-21 Thread Mingming Cao
Convert kmalloc to kzalloc() and get rid of the memset(). Signed-off-by: Mingming Cao <[EMAIL PROTECTED]> --- fs/ext3/xattr.c |3 +-- fs/ext4/xattr.c |3 +-- fs/jbd/journal.c |3 +-- fs/jbd/transaction.c |2 +- fs/jbd2/journal.c |3 +-- f

[PATCH] JBD/ext34 cleanups: convert to kzalloc

2007-09-21 Thread Mingming Cao
Convert kmalloc to kzalloc() and get rid of the memset(). Signed-off-by: Mingming Cao [EMAIL PROTECTED] --- fs/ext3/xattr.c |3 +-- fs/ext4/xattr.c |3 +-- fs/jbd/journal.c |3 +-- fs/jbd/transaction.c |2 +- fs/jbd2/journal.c |3 +-- fs/jbd2

[PATCH] JBD2/ext4 naming cleanup

2007-09-21 Thread Mingming Cao
JBD2 naming cleanup From: Mingming Cao [EMAIL PROTECTED] change micros name from JBD_XXX to JBD2_XXX in JBD2/Ext4 Signed-off-by: Mingming Cao [EMAIL PROTECTED] --- fs/ext4/extents.c |2 +- fs/ext4/super.c |2 +- fs/jbd2/commit.c |2 +- fs/jbd2/journal.c

Re: [PATCH] JBD slab cleanups

2007-09-19 Thread Mingming Cao
On Wed, 2007-09-19 at 13:48 -0600, Andreas Dilger wrote: > On Sep 19, 2007 12:15 -0700, Mingming Cao wrote: > > @@ -96,8 +96,7 @@ static int start_this_handle(journal_t * > > > > alloc_transaction: > > if (!journal->j_running_transaction) { > > -

Re: [PATCH] JBD: use GFP_NOFS in kmalloc

2007-09-19 Thread Mingming Cao
On Wed, 2007-09-19 at 14:34 -0700, Andrew Morton wrote: > On Wed, 19 Sep 2007 12:22:09 -0700 > Mingming Cao <[EMAIL PROTECTED]> wrote: > > > Convert the GFP_KERNEL flag used in JBD/JBD2 to GFP_NOFS, consistent > > with the rest of kmalloc flag used in the JBD/JBD2

Re: [PATCH] JBD slab cleanups

2007-09-19 Thread Mingming Cao
On Wed, 2007-09-19 at 19:28 +, Dave Kleikamp wrote: > On Wed, 2007-09-19 at 14:26 -0500, Dave Kleikamp wrote: > > On Wed, 2007-09-19 at 12:15 -0700, Mingming Cao wrote: > > > > > Here is the patch to clean up __GFP_NOFAIL flag in jbd/jbd2. In all > > >

[PATCH] JBD: use GFP_NOFS in kmalloc

2007-09-19 Thread Mingming Cao
Convert the GFP_KERNEL flag used in JBD/JBD2 to GFP_NOFS, consistent with the rest of kmalloc flag used in the JBD/JBD2 layer. Signed-off-by: Mingming Cao <[EMAIL PROTECTED]> --- fs/jbd/journal.c |6 +++--- fs/jbd/revoke.c |8 fs/jbd2/journal.c |6 +++--- f

Re: [PATCH] JBD slab cleanups

2007-09-19 Thread Mingming Cao
On Tue, 2007-09-18 at 19:19 -0700, Andrew Morton wrote: > On Tue, 18 Sep 2007 18:00:01 -0700 Mingming Cao <[EMAIL PROTECTED]> wrote: > > > JBD: Replace slab allocations with page cache allocations > > > > JBD allocate memory for committed_data and frozen_data fro

Re: [PATCH] JBD slab cleanups

2007-09-19 Thread Mingming Cao
On Tue, 2007-09-18 at 19:19 -0700, Andrew Morton wrote: On Tue, 18 Sep 2007 18:00:01 -0700 Mingming Cao [EMAIL PROTECTED] wrote: JBD: Replace slab allocations with page cache allocations JBD allocate memory for committed_data and frozen_data from slab. However JBD should not pass slab

[PATCH] JBD: use GFP_NOFS in kmalloc

2007-09-19 Thread Mingming Cao
Convert the GFP_KERNEL flag used in JBD/JBD2 to GFP_NOFS, consistent with the rest of kmalloc flag used in the JBD/JBD2 layer. Signed-off-by: Mingming Cao [EMAIL PROTECTED] --- fs/jbd/journal.c |6 +++--- fs/jbd/revoke.c |8 fs/jbd2/journal.c |6 +++--- fs/jbd2/revoke.c

Re: [PATCH] JBD slab cleanups

2007-09-19 Thread Mingming Cao
On Wed, 2007-09-19 at 19:28 +, Dave Kleikamp wrote: On Wed, 2007-09-19 at 14:26 -0500, Dave Kleikamp wrote: On Wed, 2007-09-19 at 12:15 -0700, Mingming Cao wrote: Here is the patch to clean up __GFP_NOFAIL flag in jbd/jbd2. In all cases except one handles memory allocation failure

Re: [PATCH] JBD: use GFP_NOFS in kmalloc

2007-09-19 Thread Mingming Cao
On Wed, 2007-09-19 at 14:34 -0700, Andrew Morton wrote: On Wed, 19 Sep 2007 12:22:09 -0700 Mingming Cao [EMAIL PROTECTED] wrote: Convert the GFP_KERNEL flag used in JBD/JBD2 to GFP_NOFS, consistent with the rest of kmalloc flag used in the JBD/JBD2 layer. Signed-off-by: Mingming Cao

Re: [PATCH] JBD slab cleanups

2007-09-19 Thread Mingming Cao
On Wed, 2007-09-19 at 13:48 -0600, Andreas Dilger wrote: On Sep 19, 2007 12:15 -0700, Mingming Cao wrote: @@ -96,8 +96,7 @@ static int start_this_handle(journal_t * alloc_transaction: if (!journal-j_running_transaction) { - new_transaction = kmalloc(sizeof

Re: [PATCH] JBD slab cleanups

2007-09-18 Thread Mingming Cao
On Tue, 2007-09-18 at 13:04 -0500, Dave Kleikamp wrote: > On Tue, 2007-09-18 at 09:35 -0700, Mingming Cao wrote: > > On Tue, 2007-09-18 at 10:04 +0100, Christoph Hellwig wrote: > > > On Mon, Sep 17, 2007 at 03:57:31PM -0700, Mingming Cao wrote: > > > > Here is the i

Re: [PATCH] JBD slab cleanups

2007-09-18 Thread Mingming Cao
On Tue, 2007-09-18 at 10:04 +0100, Christoph Hellwig wrote: > On Mon, Sep 17, 2007 at 03:57:31PM -0700, Mingming Cao wrote: > > Here is the incremental small cleanup patch. > > > > Remove kamlloc usages in jbd/jbd2 and consistently use > > jbd_kmalloc/jbd2_mal

Re: [PATCH] JBD slab cleanups

2007-09-18 Thread Mingming Cao
On Tue, 2007-09-18 at 10:04 +0100, Christoph Hellwig wrote: On Mon, Sep 17, 2007 at 03:57:31PM -0700, Mingming Cao wrote: Here is the incremental small cleanup patch. Remove kamlloc usages in jbd/jbd2 and consistently use jbd_kmalloc/jbd2_malloc. Shouldn't we kill jbd_kmalloc

Re: [PATCH] JBD slab cleanups

2007-09-18 Thread Mingming Cao
On Tue, 2007-09-18 at 13:04 -0500, Dave Kleikamp wrote: On Tue, 2007-09-18 at 09:35 -0700, Mingming Cao wrote: On Tue, 2007-09-18 at 10:04 +0100, Christoph Hellwig wrote: On Mon, Sep 17, 2007 at 03:57:31PM -0700, Mingming Cao wrote: Here is the incremental small cleanup patch

Re: [PATCH] JBD slab cleanups

2007-09-17 Thread Mingming Cao
On Mon, 2007-09-17 at 15:01 -0700, Badari Pulavarty wrote: > On Mon, 2007-09-17 at 12:29 -0700, Mingming Cao wrote: > > On Fri, 2007-09-14 at 11:53 -0700, Mingming Cao wrote: > > > jbd/jbd2: Replace slab allocations with page cache allocations > > > > > > From:

Re: [PATCH] JBD slab cleanups

2007-09-17 Thread Mingming Cao
On Fri, 2007-09-14 at 11:53 -0700, Mingming Cao wrote: > jbd/jbd2: Replace slab allocations with page cache allocations > > From: Christoph Lameter <[EMAIL PROTECTED]> > > JBD should not pass slab pages down to the block layer. > Use page allocator pages instead. This

Re: [PATCH] JBD slab cleanups

2007-09-17 Thread Mingming Cao
On Fri, 2007-09-14 at 11:53 -0700, Mingming Cao wrote: jbd/jbd2: Replace slab allocations with page cache allocations From: Christoph Lameter [EMAIL PROTECTED] JBD should not pass slab pages down to the block layer. Use page allocator pages instead. This will also prepare JBD

Re: [PATCH] JBD slab cleanups

2007-09-17 Thread Mingming Cao
On Mon, 2007-09-17 at 15:01 -0700, Badari Pulavarty wrote: On Mon, 2007-09-17 at 12:29 -0700, Mingming Cao wrote: On Fri, 2007-09-14 at 11:53 -0700, Mingming Cao wrote: jbd/jbd2: Replace slab allocations with page cache allocations From: Christoph Lameter [EMAIL PROTECTED] JBD

[PATCH] JBD slab cleanups

2007-09-14 Thread Mingming Cao
x runs fine. Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> Signed-off-by: Mingming Cao <[EMAIL PROTECTED]> --- fs/jbd/checkpoint.c |2 fs/jbd/commit.c |6 +- fs/jbd/journal.c | 107 - fs/jbd/transaction.c |

[PATCH] JBD slab cleanups

2007-09-14 Thread Mingming Cao
. Signed-off-by: Christoph Lameter [EMAIL PROTECTED] Signed-off-by: Mingming Cao [EMAIL PROTECTED] --- fs/jbd/checkpoint.c |2 fs/jbd/commit.c |6 +- fs/jbd/journal.c | 107 - fs/jbd/transaction.c | 10 ++-- fs/jbd2

[RFC 2/2] JBD: blocks reservation fix for large block support

2007-08-31 Thread Mingming Cao
The blocks per page could be less or quals to 1 with the large block support in VM. The patch fixed the way to calculate the number of blocks to reserve in journal in the case blocksize > pagesize. Signed-off-by: Mingming Cao <[EMAIL PROTECTED]> Index: my2.6/fs/jbd/

[RFC 1/2] JBD: slab management support for large block(>8k)

2007-08-31 Thread Mingming Cao
>From clameter: Teach jbd/jbd2 slab management to support >8k block size. Without this, it refused to mount on >8k ext3. Signed-off-by: Mingming Cao <[EMAIL PROTECTED]> Index: my2.6/fs/jbd/journal.c === --- my

Re: [RFC 1/4] Large Blocksize support for Ext2/3/4

2007-08-31 Thread Mingming Cao
On Wed, 2007-08-29 at 17:47 -0700, Mingming Cao wrote: > Just rebase to 2.6.23-rc4 and against the ext4 patch queue. Compile tested > only. > > Next steps: > Need a e2fsprogs changes to able test this feature. As mkfs needs to be > educated not assuming rec_len to be bloc

  1   2   3   4   >