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
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
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
=
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
===
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
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
=
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
===
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
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
=
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
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
===
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
===
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
===
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
===
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
=
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
=
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
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
=
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
==
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
=
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
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
=
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
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.
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
25 matches
Mail list logo