mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Matthew Wilcox <willy@debian.org>
To: linux-fsdevel@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Subject: [ANNOUNCE] Make fs operations const
Date: Fri, 31 Oct 2003 13:49:45 +0000	[thread overview]
Message-ID: <20031031134945.GT25237@parcelfarce.linux.theplanet.co.uk> (raw)


The 54k patch at http://ftp.linux.org.uk/pub/linux/willy/patches/fs-const.diff
makes many file_operations, dentry_operations, address_space_operations,
inode_operations, super_operations and dquot_operations const.

This was inspired by intermezzo doing something naughty which the
compiler didn't know to warn about.  By making these pointers point to
const structs, the compiler knows we shouldn't be doing that and will
issue a warning.

As a bonus for the embedded people, this enables us to move more of the
kernel into ROMmable sections.  I've only done this for ext2 and a few
well-known *_operations in this patch, but it could be done to many
more filesystems.  It only saves a few hundred bytes per filesystem,
but it all adds up.

-- 
"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

                 reply	other threads:[~2003-10-31 13:49 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20031031134945.GT25237@parcelfarce.linux.theplanet.co.uk \
    --to=willy@debian.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.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

Powered by JetHome