From: "Herbert Pötzl" <herbert@13thfloor.at>
To: Matthew Wilcox <willy@debian.org>
Cc: linux-fsdevel@vger.kernel.org
Subject: Re: consting operations
Date: Sat, 12 Jul 2003 00:47:01 +0200 [thread overview]
Message-ID: <20030711224701.GA31052@www.13thfloor.at> (raw)
In-Reply-To: <20030711221901.GO20424@parcelfarce.linux.theplanet.co.uk>
On Fri, Jul 11, 2003 at 11:19:01PM +0100, Matthew Wilcox wrote:
>
> I was having an argument with Jeff Garzik about a completely unrelated
> part of the kernel. He wants to have an setup routine that initialises
> various members of an ->*_ops vector to some default methods. I wanted
> to retaliate with "But that will be in read-only storage, so you can't
> do that", but I realised that wasn't the case.
>
> Which got me to wondering why our filesystem ops vectors aren't in
> read-only storage. As a test, I did ext2 and moved 764 bytes from .data
> to .text -- not too significant, but not bad either (4 bytes disappeared
> somewhere. let's call it a rounding error).
>
> Of course, just converting ext2 yields all kinds of warnings from the
> compiler about discarding qualifiers. We need to change linux/fs.h to
> make all those things const .... and that splatters out to about 20 places
> we need to let gcc know that yes, this local pointer really is const.
>
> Worth it? dunno. Opinions?
why do you think that filesystem ops should be read only?
(or do you just mean for ext2/ext3/... ?)
best,
Herbert
> --
> "It's not Hollywood. War is real, war is primarily not about defeat or
> victory, it is about death. I've seen thousands and thousands of dead bodies.
> Do you think I want to have an academic debate on this subject?" -- Robert Fisk
next prev parent reply other threads:[~2003-07-11 22:32 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-11 22:19 consting operations Matthew Wilcox
2003-07-11 22:30 ` Andrew Morton
2003-07-12 3:02 ` Matthew Wilcox
2003-07-11 22:47 ` Herbert Pötzl [this message]
2003-07-11 23:16 ` Trond Myklebust
2003-07-12 12:21 ` Herbert Pötzl
2003-07-14 7:08 ` David Woodhouse
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=20030711224701.GA31052@www.13thfloor.at \
--to=herbert@13thfloor.at \
--cc=linux-fsdevel@vger.kernel.org \
--cc=willy@debian.org \
/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