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-ext4&m=1135385651286

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

2007-11-30 Thread Eric Sandeen
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-ext4&m=113538565128617&w=2). > It provides statistics via procfs such as transaction li

[patch 16/19] Use page_cache_xxx in fs/ext4

2007-11-30 Thread Christoph Lameter
Use page_cache_xxx in fs/ext4 Reviewed-by: Dave Chinner <[EMAIL PROTECTED]> Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> --- fs/ext4/dir.c |3 ++- fs/ext4/inode.c | 34 +- 2 files changed, 19 insertions(+), 18 deletions(-) Index: mm/fs/ext4/dir.c =

[patch 19/19] Use page_cache_xxx in drivers/block/rd.c

2007-11-30 Thread Christoph Lameter
Use page_cache_xxx in drivers/block/rd.c Reviewed-by: Dave Chinner <[EMAIL PROTECTED]> Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> --- drivers/block/rd.c |8 1 file changed, 4 insertions(+), 4 deletions(-) Index: mm/drivers/block/rd.c ===

[patch 17/19] Use page_cache_xxx in fs/reiserfs

2007-11-30 Thread Christoph Lameter
Use page_cache_xxx in fs/reiserfs Reviewed-by: Dave Chinner <[EMAIL PROTECTED]> Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> --- fs/reiserfs/file.c|6 -- fs/reiserfs/inode.c | 33 - fs/reiserfs/ioctl.c |2 +- fs

[patch 10/19] Use page_cache_xxx in fs/buffer.c

2007-11-30 Thread Christoph Lameter
Use page_cache_xxx in fs/buffer.c. Reviewed-by: Dave Chinner <[EMAIL PROTECTED]> Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> --- fs/buffer.c | 103 +--- 1 file changed, 57 insertions(+), 46 deletions(-) Index: mm/fs/buffer.c =

[patch 08/19] Use page_cache_xxx in fs/libfs.c

2007-11-30 Thread Christoph Lameter
Use page_cache_xxx in fs/libfs.c Reviewed-by: Dave Chinner <[EMAIL PROTECTED]> Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> --- fs/libfs.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) Index: mm/fs/libfs.c ===

[patch 18/19] Use page_cache_xxx for fs/xfs

2007-11-30 Thread Christoph Lameter
Use page_cache_xxx for fs/xfs Reviewed-by: Dave Chinner <[EMAIL PROTECTED]> Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> --- fs/xfs/linux-2.6/xfs_aops.c | 55 ++-- fs/xfs/linux-2.6/xfs_lrw.c |4 +-- 2 files changed, 30 insertions(+), 29 delet

[patch 14/19] Use page_cache_xxx in ext2

2007-11-30 Thread Christoph Lameter
Use page_cache_xxx functions in fs/ext2/* Reviewed-by: Dave Chinner <[EMAIL PROTECTED]> Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> --- fs/ext2/dir.c | 41 +++-- 1 file changed, 23 insertions(+), 18 deletions(-) Index: mm/fs/ext2/dir.c =

[patch 15/19] Use page_cache_xxx in fs/ext3

2007-11-30 Thread Christoph Lameter
Use page_cache_xxx in fs/ext3 Reviewed-by: Dave Chinner <[EMAIL PROTECTED]> Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> --- fs/ext3/dir.c |3 ++- fs/ext3/inode.c | 39 --- 2 files changed, 22 insertions(+), 20 deletions(-) Index: mm/fs/ext3/di

[patch 13/19] Use page_cache_xxx in fs/splice.c

2007-11-30 Thread Christoph Lameter
Use page_cache_xxx in fs/splice.c Reviewed-by: Dave Chinner <[EMAIL PROTECTED]> Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> --- fs/splice.c | 27 ++- 1 file changed, 14 insertions(+), 13 deletions(-) Index: mm/fs/splice.c ===

[patch 09/19] Use page_cache_xxx in fs/sync

2007-11-30 Thread Christoph Lameter
Use page_cache_xxx in fs/sync. Reviewed-by: Dave Chinner <[EMAIL PROTECTED]> Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> --- fs/sync.c |8 1 file changed, 4 insertions(+), 4 deletions(-) Index: mm/fs/sync.c ===

[patch 02/19] Use page_cache_xxx functions in mm/filemap.c

2007-11-30 Thread Christoph Lameter
Convert the uses of PAGE_CACHE_xxx. Reviewed-by: Dave Chinner <[EMAIL PROTECTED]> Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> --- mm/filemap.c | 91 +-- 1 file changed, 46 insertions(+), 45 deletions(-) Index: mm/mm/filemap.c ===

[patch 06/19] Use page_cache_xxx in mm/filemap_xip.c

2007-11-30 Thread Christoph Lameter
Use page_cache_xxx in mm/filemap_xip.c Reviewed-by: Dave Chinner <[EMAIL PROTECTED]> Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> --- mm/filemap_xip.c | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) Index: mm/mm/filemap_xip.c ===

[patch 12/19] Use page_cache_xxx in mm/fadvise.c

2007-11-30 Thread Christoph Lameter
Use page_cache_xxx in mm/fadvise.c Reviewed-by: Dave Chinner <[EMAIL PROTECTED]> Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> --- mm/fadvise.c |8 1 file changed, 4 insertions(+), 4 deletions(-) Index: mm/mm/fadvise.c =

[patch 04/19] Use page_cache_xxx in mm/truncate.c

2007-11-30 Thread Christoph Lameter
Use page_cache_xxx in mm/truncate.c Reviewed-by: Dave Chinner <[EMAIL PROTECTED]> Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> --- mm/truncate.c | 35 ++- 1 file changed, 18 insertions(+), 17 deletions(-) Index: mm/mm/truncate.c =

[patch 00/19] Page cache: Replace PAGE_CACHE_xx with inline functions V2

2007-11-30 Thread Christoph Lameter
This patchset cleans up page cache handling by replacing open coded shifts and adds with inline function calls. The ultimate goal is to replace all uses of PAGE_CACHE_xxx in the kernel through the use of these functions. All the functions take a mapping parameter. The mapping parameter is required

[patch 07/19] Use page_cache_xxx in mm/migrate.c

2007-11-30 Thread Christoph Lameter
Use page_cache_xxx in mm/migrate.c Reviewed-by: Dave Chinner <[EMAIL PROTECTED]> Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> --- mm/migrate.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: mm/mm/migrate.c =

[patch 03/19] Use page_cache_xxx in mm/page-writeback.c

2007-11-30 Thread Christoph Lameter
Use page_cache_xxx in mm/page-writeback.c Reviewed-by: Dave Chinner <[EMAIL PROTECTED]> Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> --- mm/page-writeback.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) Index: mm/mm/page-writeback.c ==

[patch 11/19] Use page_cache_xxx in mm/mpage.c

2007-11-30 Thread Christoph Lameter
Use page_cache_xxx in mm/mpage.c Reviewed-by: Dave Chinner <[EMAIL PROTECTED]> Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> --- fs/mpage.c | 28 1 file changed, 16 insertions(+), 12 deletions(-) Index: mm/fs/mpage.c =

[patch 01/19] Define functions for page cache handling

2007-11-30 Thread Christoph Lameter
We use the macros PAGE_CACHE_SIZE PAGE_CACHE_SHIFT PAGE_CACHE_MASK and PAGE_CACHE_ALIGN in various places in the kernel. Many times common operations like calculating the offset or the index are coded using shifts and adds. This patch provides inline functions to get the calculations accomplished w

[patch 05/19] Use page_cache_xxx in mm/rmap.c

2007-11-30 Thread Christoph Lameter
Use page_cache_xxx in mm/rmap.c Reviewed-by: Dave Chinner <[EMAIL PROTECTED]> Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> --- mm/rmap.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) Index: mm/mm/rmap.c =

Re: [RFC] support multiple max offset limits for a single superblock

2007-11-30 Thread Chris Wedgwood
On Fri, Nov 30, 2007 at 10:35:01AM -0600, Eric Sandeen wrote: > I could do the same for ext4, but Chris Mason prodded me to think of something > more generic... this is what I came up with. I think it (for now) should remain in the few file-systems that are affected to avoid making a new ->i_op r

[RFC] support multiple max offset limits for a single superblock

2007-11-30 Thread Eric Sandeen
Reiserfs, and now ext4, both have the possibility of encountering older on-disk format files which do not support the s_maxbytes of the newer formats. Reiserfs currently has spots in various places to catch these too-large offsets and reject them, but it's replicating a bit of code in the process.

Re: Race between generic_forget_inode() and sync_sb_inodes()?

2007-11-30 Thread Jarek Poplawski
On 30-11-2007 00:03, Neil Brown wrote: > On Friday November 30, [EMAIL PROTECTED] wrote: ... >> Or have I just not had enough coffee this morning? > > :-) And I cannot even blame the lack of coffee as I don't drink it. > Looks like logical error... (Or I haven't had enough coffee this morning