mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "rae l" <crquan@gmail.com>
To: "Steven Whitehouse" <swhiteho@redhat.com>
Cc: cluster-devel@redhat.com, linux-kernel@vger.kernel.org,
	chdebra@gmail.com
Subject: Re: [PATCH] fs/gfs2: mark struct *_operations const
Date: Tue, 31 Jul 2007 17:35:36 +0800	[thread overview]
Message-ID: <91b13c310707310235u3a911ab7maf9b4e5ded99e179@mail.gmail.com> (raw)
In-Reply-To: <1185873464.8765.564.camel@quoit>

On 7/31/07, Steven Whitehouse <swhiteho@redhat.com> wrote:
> Hi,
>
> On Tue, 2007-07-31 at 13:46 +0800, Denis Cheng wrote:
> > these struct *_operations are all method tables, thus should be const.
> >
> > Signed-off-by: Denis Cheng <crquan@gmail.com>
> > ---
> >  fs/gfs2/eaops.c        |    8 ++++----
> >  fs/gfs2/eaops.h        |    4 ++--
> >  fs/gfs2/glock.c        |    2 +-
> >  fs/gfs2/ops_dentry.c   |    3 +--
> >  fs/gfs2/ops_dentry.h   |    2 +-
> >  fs/gfs2/ops_vm.c       |    4 ++--
> >  fs/gfs2/ops_vm.h       |    4 ++--
> >  include/linux/dcache.h |    2 +-
> >  include/linux/mm.h     |    2 +-
> >  9 files changed, 15 insertions(+), 16 deletions(-)
> >
>
> In general this looks good, however where you have made changes in the
> two include files dcache.h and mm.h be aware that other filesystems also
> use these and I suspect there are more places to change than just gfs2.
> Can you do a test build with all filesystems enabled to ensure that
> you've got all the places which can then be marked const? OCFS2, to take
> one example, has a vm_operations_struct which would need to be updated
> on that basis at least.
>
> In fact if you can break this up into a patch which affects only gfs2
> (which I can apply right away) and a patch which affects the core, plus
> updates for the various filesytems that would probably make things
> easier from the merging point of view. Since the latter would affect
> multiple filesystems, it would make sense to push it through -mm rather
> than for me to put it in my git tree,
>
> Steve.
>

I think so. But I've tested it under x86(pentium4) with allyesconfig
and allmodconfig, the compilication process of the kernel looked very
quiet.
$ make mrproper
$ make allyesconfig
$ make fs/

$ make mrproper
$ make allmodconfig
$ make fs/

and the ocfs2 didn't complain.

However, I'll split it into two patches and resend them later.

  reply	other threads:[~2007-07-31  9:36 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-31  5:46 Denis Cheng
2007-07-31  9:17 ` Steven Whitehouse
2007-07-31  9:35   ` rae l [this message]
2007-07-31 10:31   ` [PATCH 1/3] " Denis Cheng
2007-07-31 10:31     ` [PATCH 2/3] fs/gfs2: use the declaration of gfs2_dops in the header file instead Denis Cheng
2007-07-31 10:31       ` [PATCH 3/3] fs/gfs2: also mark struct {dentry,vm}_operations const Denis Cheng
2007-07-31 11:47         ` Steven Whitehouse

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=91b13c310707310235u3a911ab7maf9b4e5ded99e179@mail.gmail.com \
    --to=crquan@gmail.com \
    --cc=chdebra@gmail.com \
    --cc=cluster-devel@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=swhiteho@redhat.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

all inboxes | Powered by JetHome®