From: Dave Chinner <david@fromorbit.com>
To: Mark Tinguely <tinguely@sgi.com>
Cc: xfs-oss <xfs@oss.sgi.com>
Subject: Re: [PATCH] xfs: rename log structure and remove xlog_t typedef.
Date: Wed, 13 Jun 2012 12:28:15 +1000 [thread overview]
Message-ID: <20120613022815.GR22848@dastard> (raw)
In-Reply-To: <4FD78236.6010109@sgi.com>
On Tue, Jun 12, 2012 at 12:53:58PM -0500, Mark Tinguely wrote:
> From: Mark Tinguely <tinguely@sgi.com>
>
> Rename the log structure to xlog and drop the xlog_t type definition.
> This will make it easier to distinguish the XFS log from other logs
> in Linux.
>
> Signed-off-by: Mark Tinguely <tinguely@sgi.com>
Couple of things - it looks like you mailer has line wrapped the
patch. When you repost it, can you make sure it isn't line wrapped?
> ---
> fs/xfs/xfs_log.c | 130
> +++++++++++++++++++++++------------------------
e.g. That's a linewrapped line....
> @@ -1055,7 +1055,7 @@ xlog_iodone(xfs_buf_t *bp)
>
> STATIC void
> xlog_get_iclog_buffer_size(xfs_mount_t *mp,
> - xlog_t *log)
> + struct xlog *log)
> {
> int size;
> int xhdrs;
When we modify function headers in non-standard formats, we tend to
convert them at the same time to the standard format and remove all
the typedefs. i.e:
STATIC void
-xlog_get_iclog_buffer_size(xfs_mount_t *mp,
- xlog_t *log)
+xlog_get_iclog_buffer_size(
+ struct xfs_mount *mp,
+ struct xlog *log)
{
Note that I'm only suggesting removing all the other typedefs for the
functions that you need to reformat, not every single one that has a
xlog_t->struct xlog transformation. ;)
The log is one of the few places left that has non-standard function
formats, so can you go through the patch and convert all the
functions that are touched and convert them fully? This way we
slowly improve the code as we go, and seeing as this is pretty much
a cleanup patch it makes sense to do this at the same time....
Otherwise it looks fine. Thanks for taking a shot at this, Mark.
Cheers,
Dave.
--
Dave Chinner
david@fromorbit.com
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
prev parent reply other threads:[~2012-06-13 2:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-12 17:53 [PATCH] xfs: rename log structure and remove xlog_t typedef Mark Tinguely
2012-06-13 2:28 ` Dave Chinner [this message]
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=20120613022815.GR22848@dastard \
--to=david@fromorbit.com \
--cc=tinguely@sgi.com \
--cc=xfs@oss.sgi.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