From: Matt Mackall <mpm@selenic.com>
To: linux-kernel <linux-kernel@vger.kernel.org>,
Andrew Morton <akpm@osdl.org>
Subject: [PATCH] shrink inode when quota is disabled
Date: Fri, 2 Apr 2004 22:24:55 -0600 [thread overview]
Message-ID: <20040403042454.GW6248@waste.org> (raw)
drop quota array in inode struct if no quota support
tiny-mpm/fs/inode.c | 2 ++
tiny-mpm/include/linux/fs.h | 2 ++
2 files changed, 4 insertions(+)
Index: tiny/include/linux/fs.h
===================================================================
--- tiny.orig/include/linux/fs.h 2004-04-02 20:24:36.000000000 -0600
+++ tiny/include/linux/fs.h 2004-04-02 20:28:07.000000000 -0600
@@ -403,7 +403,9 @@
struct file_lock *i_flock;
struct address_space *i_mapping;
struct address_space i_data;
+#ifdef CONFIG_QUOTA
struct dquot *i_dquot[MAXQUOTAS];
+#endif
/* These three should probably be a union */
struct list_head i_devices;
struct pipe_inode_info *i_pipe;
Index: tiny/fs/inode.c
===================================================================
--- tiny.orig/fs/inode.c 2004-04-02 20:24:35.000000000 -0600
+++ tiny/fs/inode.c 2004-04-02 20:28:07.000000000 -0600
@@ -126,7 +126,9 @@
inode->i_blocks = 0;
inode->i_bytes = 0;
inode->i_generation = 0;
+#ifdef CONFIG_QUOTA
memset(&inode->i_dquot, 0, sizeof(inode->i_dquot));
+#endif
inode->i_pipe = NULL;
inode->i_bdev = NULL;
inode->i_cdev = NULL;
--
Matt Mackall : http://www.selenic.com : Linux development and consulting
next reply other threads:[~2004-04-03 4:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-03 4:24 Matt Mackall [this message]
2004-04-03 17:10 Ray Lee
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=20040403042454.GW6248@waste.org \
--to=mpm@selenic.com \
--cc=akpm@osdl.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
all inboxes | Powered by JetHome®