Commit 87217f47 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] shrink inode when quota is disabled

From: Matt Mackall <mpm@selenic.com>

drop quota array in inode struct if no quota support
parent 8398bcc6
...@@ -126,7 +126,9 @@ static struct inode *alloc_inode(struct super_block *sb) ...@@ -126,7 +126,9 @@ static struct inode *alloc_inode(struct super_block *sb)
inode->i_blocks = 0; inode->i_blocks = 0;
inode->i_bytes = 0; inode->i_bytes = 0;
inode->i_generation = 0; inode->i_generation = 0;
#ifdef CONFIG_QUOTA
memset(&inode->i_dquot, 0, sizeof(inode->i_dquot)); memset(&inode->i_dquot, 0, sizeof(inode->i_dquot));
#endif
inode->i_pipe = NULL; inode->i_pipe = NULL;
inode->i_bdev = NULL; inode->i_bdev = NULL;
inode->i_cdev = NULL; inode->i_cdev = NULL;
......
...@@ -403,7 +403,9 @@ struct inode { ...@@ -403,7 +403,9 @@ struct inode {
struct file_lock *i_flock; struct file_lock *i_flock;
struct address_space *i_mapping; struct address_space *i_mapping;
struct address_space i_data; struct address_space i_data;
#ifdef CONFIG_QUOTA
struct dquot *i_dquot[MAXQUOTAS]; struct dquot *i_dquot[MAXQUOTAS];
#endif
/* These three should probably be a union */ /* These three should probably be a union */
struct list_head i_devices; struct list_head i_devices;
struct pipe_inode_info *i_pipe; struct pipe_inode_info *i_pipe;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment