mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Adrian Bunk <bunk@stusta.de>
To: Andrew Morton <akpm@osdl.org>, Hans Reiser <reiser@namesys.com>
Cc: linux-kernel@vger.kernel.org, reiserfs-dev@namesys.com
Subject: [patch] 2.6.10-rc1-mm5: some reiser4 cleanups
Date: Fri, 12 Nov 2004 15:30:38 +0100	[thread overview]
Message-ID: <20041112143038.GC7707@stusta.de> (raw)
In-Reply-To: <20041111012333.1b529478.akpm@osdl.org>

[-- Attachment #1: Type: text/plain, Size: 4865 bytes --]

This patch (gzip'ed due to the 100 kB limit on linux-kernel) is not 
intended for immediate applying but requires a review.

I've gone throught the reiser4 code in 2.6.10-rc1-mm5, removed unused 
code and made needlessly global code static.

Size comparison (with all through Kconfig available debugging enabled,
gcc 3.4 on i386):

1787503 2004-11-12 15:12 built-in.o
1821820 2004-11-11 23:55 built-in.o-before-cleanup

That's a 1.9% space saving with zero functionality loss.

diffstat output:
 fs/reiser4/Makefile                       |    5 
 fs/reiser4/block_alloc.c                  |   29 ---
 fs/reiser4/block_alloc.h                  |   10 -
 fs/reiser4/carry.c                        |   25 +--
 fs/reiser4/carry.h                        |   20 --
 fs/reiser4/cluster.h                      |    4 
 fs/reiser4/context.c                      |    6 
 fs/reiser4/context.h                      |    5 
 fs/reiser4/coord.c                        |   43 -----
 fs/reiser4/coord.h                        |    4 
 fs/reiser4/debug.c                        |   31 ---
 fs/reiser4/debug.h                        |    4 
 fs/reiser4/estimate.c                     |    6 
 fs/reiser4/flush.c                        |   16 -
 fs/reiser4/flush.h                        |    2 
 fs/reiser4/flush_queue.c                  |    4 
 fs/reiser4/inode.c                        |   13 -
 fs/reiser4/inode.h                        |    2 
 fs/reiser4/jnode.c                        |   19 +-
 fs/reiser4/jnode.h                        |    8 
 fs/reiser4/kassign.c                      |   37 ----
 fs/reiser4/kassign.h                      |    3 
 fs/reiser4/kcond.c                        |   15 -
 fs/reiser4/kcond.h                        |    3 
 fs/reiser4/lnode.c                        |  177 ----------------------
 fs/reiser4/lnode.h                        |    6 
 fs/reiser4/lock.c                         |    2 
 fs/reiser4/log.c                          |   44 -----
 fs/reiser4/log.h                          |   10 -
 fs/reiser4/page_cache.c                   |   10 -
 fs/reiser4/page_cache.h                   |    1 
 fs/reiser4/plugin/cryptcompress.c         |   33 +---
 fs/reiser4/plugin/cryptcompress.h         |    1 
 fs/reiser4/plugin/dir/dir.c               |    4 
 fs/reiser4/plugin/dir/hashed_dir.c        |    2 
 fs/reiser4/plugin/file/file.c             |   31 +--
 fs/reiser4/plugin/file/funcs.h            |    1 
 fs/reiser4/plugin/file/pseudo.c           |    2 
 fs/reiser4/plugin/file/tail_conversion.c  |   10 -
 fs/reiser4/plugin/item/ctail.c            |    9 -
 fs/reiser4/plugin/item/ctail.h            |    2 
 fs/reiser4/plugin/item/extent.c           |    8 
 fs/reiser4/plugin/item/extent.h           |    2 
 fs/reiser4/plugin/item/extent_flush_ops.c |    4 
 fs/reiser4/plugin/item/item.c             |    2 
 fs/reiser4/plugin/item/tail.c             |    2 
 fs/reiser4/plugin/node/node.c             |   92 -----------
 fs/reiser4/plugin/node/node.h             |    5 
 fs/reiser4/plugin/node/node40.c           |   16 -
 fs/reiser4/plugin/node/node40.h           |    2 
 fs/reiser4/plugin/object.c                |    8 
 fs/reiser4/plugin/object.h                |    2 
 fs/reiser4/plugin/plugin.c                |   23 --
 fs/reiser4/plugin/plugin_set.c            |   37 +---
 fs/reiser4/plugin/plugin_set.h            |    4 
 fs/reiser4/plugin/space/bitmap.c          |    6 
 fs/reiser4/plugin/space/bitmap.h          |    1 
 fs/reiser4/pool.c                         |    2 
 fs/reiser4/pool.h                         |    1 
 fs/reiser4/repacker.c                     |    6 
 fs/reiser4/repacker.h                     |    1 
 fs/reiser4/safe_link.c                    |    2 
 fs/reiser4/safe_link.h                    |    1 
 fs/reiser4/search.c                       |   37 ----
 fs/reiser4/stats.c                        |    2 
 fs/reiser4/stats.h                        |    3 
 fs/reiser4/super.c                        |   75 ---------
 fs/reiser4/super.h                        |    8 
 fs/reiser4/tap.c                          |    9 -
 fs/reiser4/tap.h                          |    2 
 fs/reiser4/tree.c                         |   16 -
 fs/reiser4/tree.h                         |    9 -
 fs/reiser4/txnmgr.c                       |   79 ---------
 fs/reiser4/txnmgr.h                       |   11 -
 fs/reiser4/wander.c                       |    2 
 fs/reiser4/znode.c                        |  155 ++++---------------
 fs/reiser4/znode.h                        |   11 -
 77 files changed, 189 insertions(+), 1116 deletions(-)


cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


[-- Attachment #2: patch-cleanup-reiser4.gz --]
[-- Type: application/octet-stream, Size: 24553 bytes --]

  parent reply	other threads:[~2004-11-12 14:32 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-11  9:23 2.6.10-rc1-mm5 Andrew Morton
2004-11-11 10:09 ` 2.6.10-rc1-mm5 Magnus Damm
2004-11-11 10:11   ` 2.6.10-rc1-mm5 Andrew Morton
2004-11-11 10:24     ` 2.6.10-rc1-mm5 Magnus Damm
2004-11-11 10:45 ` 2.6.10-rc1-mm5 Brice Goglin
2004-11-11 11:00   ` 2.6.10-rc1-mm5 Stefano Rivoir
2004-11-11 11:13   ` 2.6.10-rc1-mm5 Andrew Morton
2004-11-11 11:04 ` 2.6.10-rc1-mm5 Markus Trippelsdorf
2004-11-11 11:08 ` 2.6.10-rc1-mm5 Andrew Morton
2004-11-11 21:55   ` 2.6.10-rc1-mm5 Martin J. Bligh
2004-11-11 22:14     ` 2.6.10-rc1-mm5 Andrew Morton
2004-11-12  9:27       ` 2.6.10-rc1-mm5 Jens Axboe
2004-11-11 22:41     ` 2.6.10-rc1-mm5 Andrew Morton
2004-11-12 10:50     ` [PATCH] Fix SHMEM options David Howells
2004-11-12 16:45       ` Christoph Hellwig
2004-11-11 12:11 ` 2.6.10-rc1-mm5: yenta_socket issue Rafael J. Wysocki
2004-11-11 12:21   ` Andrew Morton
2004-11-11 12:43     ` Rafael J. Wysocki
2004-11-12  3:55   ` Rusty Russell
2004-11-11 16:50 ` 2.6.10-rc1-mm5: REISER4_LARGE_KEY is still selectable Adrian Bunk
2004-11-12  7:07   ` Vladimir Saveliev
2004-11-12 13:23     ` Adrian Bunk
2004-11-12 16:16       ` DaMouse
2004-11-12 16:37       ` Vladimir Saveliev
2004-11-12 17:15         ` Adrian Bunk
2004-12-11 17:25   ` Hans Reiser
2004-11-11 21:45 ` Reiser{3,4}: problem with the copyright statement Adrian Bunk
2004-11-11 21:59   ` Linus Torvalds
2004-11-12 16:47     ` Christoph Hellwig
2004-11-12 17:06       ` Christoph Hellwig
2004-11-12 17:11         ` Adrian Bunk
2004-11-12 17:13           ` Christoph Hellwig
2004-11-12 19:33             ` Hans Reiser
2004-11-11 22:51   ` Stephen Pollei
2004-11-12  2:08     ` Zan Lynx
2004-11-11 23:28 ` 2.6.10-rc1-mm5: reiser4: print_clog in debug.c useless? Adrian Bunk
2004-11-12  2:39 ` 2.6.10-rc1-mm5: strange fs/reiser4/linux-5_reiser4_syscall.patch Adrian Bunk
2004-11-12 14:30 ` Adrian Bunk [this message]
2004-11-12 19:00 ` 2.6.10-rc1-mm5 Alexander Nyberg
2004-11-13  0:11 ` 2.6.10-rc1-mm5 Greg KH
2004-11-13 17:55 ` 2.6.10-rc1-mm5 [u] Martin Schlemmer [c]
2004-11-13 21:16   ` Martin Schlemmer [c]
2004-11-13 21:22     ` Andrew Morton
2004-11-13 22:19       ` Jedi/Sector One
2004-11-13 22:22       ` Martin Schlemmer [c]
2004-11-13 23:24         ` Andrew Morton
2004-11-14  0:07           ` Martin Schlemmer [c]
2004-11-14  9:10           ` Jamie Lokier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20041112143038.GC7707@stusta.de \
    --to=bunk@stusta.de \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=reiser@namesys.com \
    --cc=reiserfs-dev@namesys.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome