diff options
author | Adrian Bunk <bunk@stusta.de> | 2005-01-10 16:57:45 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-01-10 16:57:45 -0800 |
commit | 357bdf2ac6f6f2c57bce76d819b4605e92897a58 (patch) | |
tree | fb989aaef37b62d7e8112ce29ea8feca8920b4e0 /fs | |
parent | 6e2c956836801565ccaf8d7adcfd13ba3b9d665a (diff) | |
download | history-357bdf2ac6f6f2c57bce76d819b4605e92897a58.tar.gz |
[PATCH] quota: make some code static
The patch below makes some needlessly global code static.
The most interesting part is that dquot_cachep can become static, since
it isn't used outside of dquot.c .
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Acked-by: Jan Kara <jack@suse.cz>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/dquot.c | 8 | ||||
-rw-r--r-- | fs/quota.c | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/fs/dquot.c b/fs/dquot.c index ce53e60bd227ec..8455855e751abf 100644 --- a/fs/dquot.c +++ b/fs/dquot.c @@ -128,6 +128,9 @@ static char *quotatypes[] = INITQFNAMES; static struct quota_format_type *quota_formats; /* List of registered formats */ static struct quota_module_name module_names[] = INIT_QUOTA_MODULE_NAMES; +/* SLAB cache for dquot structures */ +static kmem_cache_t *dquot_cachep; + int register_quota_format(struct quota_format_type *fmt) { spin_lock(&dq_list_lock); @@ -199,7 +202,7 @@ static void put_quota_format(struct quota_format_type *fmt) static LIST_HEAD(inuse_list); static LIST_HEAD(free_dquots); -unsigned int dq_hash_bits, dq_hash_mask; +static unsigned int dq_hash_bits, dq_hash_mask; static struct hlist_head *dquot_hash; struct dqstats dqstats; @@ -1781,9 +1784,6 @@ static ctl_table sys_table[] = { { .ctl_name = 0 }, }; -/* SLAB cache for dquot structures */ -kmem_cache_t *dquot_cachep; - static int __init dquot_init(void) { int i; diff --git a/fs/quota.c b/fs/quota.c index e69e8d1ada8493..d59ccf2358b59a 100644 --- a/fs/quota.c +++ b/fs/quota.c @@ -136,7 +136,7 @@ restart: return NULL; } -void quota_sync_sb(struct super_block *sb, int type) +static void quota_sync_sb(struct super_block *sb, int type) { int cnt; struct inode *discard[MAXQUOTAS]; |