All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCHES] 2.6.1 Cleanups
@ 2004-01-12 21:53 Jeff Mahoney
  2004-02-24  2:55 ` Jeff Mahoney
  0 siblings, 1 reply; 3+ messages in thread
From: Jeff Mahoney @ 2004-01-12 21:53 UTC (permalink / raw)
  To: ReiserFS Mailing List

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hey all -

Now that the 2.6.0 hurdle has been cleared and Linus seems to be more
open to cleanup-type patches, I have these to submit for comment.

I have 4 patches, descriptions follow:
* cleanup-01-basic-cleanup
	-- This cleans up journal.c such that the ugly 50+ character
	macro/derefs that are used repeatedly are evaluated once and
	then accessed using a temporary variable. The resulting code
	should be identical and makes it quite a bit nicer to read.

* cleanup-01-sb-opts
	-- This eliminates individual #defines for superblock/mount
	options and instead uses an enum. It's not like the actual
	values of the mount options matter, and this just makes a list
	of them. Accordingly, since the values aren't apparently in the
	include, I added a BUG_ON to bail out of the value passes beyond
	the size of the mount_opts variable.

* cleanup-02-bh-bits
	-- This patch makes all the accesses for bh->b_state use the
	appropriate macros, rather than accessing them directly.

* cleanup-03-bh-cleanup
	-- This patch eliminates the local macro implementation for the
	bh->b_state accessors/mutators and uses the FNS_BUFFER
	implementation in fs.h, which automatically creates the macros
	with on line of code.

* cleanup-04-sb-journal-elimination
	-- This patch is similar to the basic-cleanup, except that it
	focuses on the use of SB_JOURNAL(super) everywhere, and replaces
	it with a local "journal" variable. Again, this makes the code
	much easier to look at.

Opinions? Comments?

Patches can be found at
ftp://ftp.suse.com/pub/people/jeffm/reiserfs/kernel-v2.6/2.6.1/

- -Jeff

I apologize if this posted twice. The first message had the patches
attached, and crossed the post size limit. I haven't received a bounce yet.

- --
Jeff Mahoney
SuSE Labs
jeffm@suse.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFAAxdqLPWxlyuTD7IRAuedAKCETcQI8uv3l2+KV2dZuuTsO3jVmQCcCaEZ
9TZxgECJvfcr/9CwHwrRLWw=
=i605
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCHES] 2.6.1 Cleanups
  2004-01-12 21:53 [PATCHES] 2.6.1 Cleanups Jeff Mahoney
@ 2004-02-24  2:55 ` Jeff Mahoney
  2004-02-24 12:11   ` Dieter Nützel
  0 siblings, 1 reply; 3+ messages in thread
From: Jeff Mahoney @ 2004-02-24  2:55 UTC (permalink / raw)
  To: ReiserFS Mailing List

Jeff Mahoney wrote:
> Hey all -
> 
> Now that the 2.6.0 hurdle has been cleared and Linus seems to be more
> open to cleanup-type patches, I have these to submit for comment.
> 
> I have 4 patches, descriptions follow:
> * cleanup-01-basic-cleanup
>     -- This cleans up journal.c such that the ugly 50+ character
>     macro/derefs that are used repeatedly are evaluated once and
>     then accessed using a temporary variable. The resulting code
>     should be identical and makes it quite a bit nicer to read.
> 
> * cleanup-01-sb-opts
>     -- This eliminates individual #defines for superblock/mount
>     options and instead uses an enum. It's not like the actual
>     values of the mount options matter, and this just makes a list
>     of them. Accordingly, since the values aren't apparently in the
>     include, I added a BUG_ON to bail out of the value passes beyond
>     the size of the mount_opts variable.
> 
> * cleanup-02-bh-bits
>     -- This patch makes all the accesses for bh->b_state use the
>     appropriate macros, rather than accessing them directly.
> 
> * cleanup-03-bh-cleanup
>     -- This patch eliminates the local macro implementation for the
>     bh->b_state accessors/mutators and uses the FNS_BUFFER
>     implementation in fs.h, which automatically creates the macros
>     with on line of code.
> 
> * cleanup-04-sb-journal-elimination
>     -- This patch is similar to the basic-cleanup, except that it
>     focuses on the use of SB_JOURNAL(super) everywhere, and replaces
>     it with a local "journal" variable. Again, this makes the code
>     much easier to look at.
> 
> Opinions? Comments?
> 
> Patches can be found at
> ftp://ftp.suse.com/pub/people/jeffm/reiserfs/kernel-v2.6/2.6.1/
> 
> -Jeff
> 
> I apologize if this posted twice. The first message had the patches
> attached, and crossed the post size limit. I haven't received a bounce yet.


Hey all -

I never got any sort of response on these. Shall I send them on to 
Linus? They still apply cleanly to 2.6.3.

-Jeff

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCHES] 2.6.1 Cleanups
  2004-02-24  2:55 ` Jeff Mahoney
@ 2004-02-24 12:11   ` Dieter Nützel
  0 siblings, 0 replies; 3+ messages in thread
From: Dieter Nützel @ 2004-02-24 12:11 UTC (permalink / raw)
  To: reiserfs-list; +Cc: Jeff Mahoney, Chris Mason

Am Dienstag, 24. Februar 2004 03:55 schrieb Jeff Mahoney:
> Jeff Mahoney wrote:
> > Hey all -
> >
> > Now that the 2.6.0 hurdle has been cleared and Linus seems to be more
> > open to cleanup-type patches, I have these to submit for comment.
> >
> > I have 4 patches, descriptions follow:
> > * cleanup-01-basic-cleanup
> >     -- This cleans up journal.c such that the ugly 50+ character
> >     macro/derefs that are used repeatedly are evaluated once and
> >     then accessed using a temporary variable. The resulting code
> >     should be identical and makes it quite a bit nicer to read.
> >
> > * cleanup-01-sb-opts
> >     -- This eliminates individual #defines for superblock/mount
> >     options and instead uses an enum. It's not like the actual
> >     values of the mount options matter, and this just makes a list
> >     of them. Accordingly, since the values aren't apparently in the
> >     include, I added a BUG_ON to bail out of the value passes beyond
> >     the size of the mount_opts variable.
> >
> > * cleanup-02-bh-bits
> >     -- This patch makes all the accesses for bh->b_state use the
> >     appropriate macros, rather than accessing them directly.
> >
> > * cleanup-03-bh-cleanup
> >     -- This patch eliminates the local macro implementation for the
> >     bh->b_state accessors/mutators and uses the FNS_BUFFER
> >     implementation in fs.h, which automatically creates the macros
> >     with on line of code.
> >
> > * cleanup-04-sb-journal-elimination
> >     -- This patch is similar to the basic-cleanup, except that it
> >     focuses on the use of SB_JOURNAL(super) everywhere, and replaces
> >     it with a local "journal" variable. Again, this makes the code
> >     much easier to look at.
> >
> > Opinions? Comments?
> >
> > Patches can be found at
> > ftp://ftp.suse.com/pub/people/jeffm/reiserfs/kernel-v2.6/2.6.1/
> >
> > -Jeff
> >
> > I apologize if this posted twice. The first message had the patches
> > attached, and crossed the post size limit. I haven't received a bounce
> > yet.
>
> Hey all -
>
> I never got any sort of response on these. Shall I send them on to
> Linus? They still apply cleanly to 2.6.3.

Huh, never show up, here...

What about Chris's work?

ftp://ftp.suse.com/pub/people/mason/patches/data-logging/experimental/2.6.3

Here is the thread:
http://marc.theaimsgroup.com/?l=reiserfs&m=107716524819195&w=2

Regards,
	Dieter

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-02-24 12:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-12 21:53 [PATCHES] 2.6.1 Cleanups Jeff Mahoney
2004-02-24  2:55 ` Jeff Mahoney
2004-02-24 12:11   ` Dieter Nützel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.