summaryrefslogtreecommitdiffstats
path: root/sys/ufs
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1995-12-22 15:58:56 +0000
committerphk <phk@FreeBSD.org>1995-12-22 15:58:56 +0000
commit1ba09babf4b24c0f22b63cf785e4b4e3027516ac (patch)
tree43c2dc1045930780063c6763e7a90fc7aac56cf2 /sys/ufs
parentb136c540718090cdbfaad574147d9e11db069744 (diff)
downloadFreeBSD-src-1ba09babf4b24c0f22b63cf785e4b4e3027516ac.zip
FreeBSD-src-1ba09babf4b24c0f22b63cf785e4b4e3027516ac.tar.gz
Staticize.
Diffstat (limited to 'sys/ufs')
-rw-r--r--sys/ufs/ufs/quota.h14
-rw-r--r--sys/ufs/ufs/ufs_quota.c36
2 files changed, 25 insertions, 25 deletions
diff --git a/sys/ufs/ufs/quota.h b/sys/ufs/ufs/quota.h
index 35dafa9..b3fcfeb 100644
--- a/sys/ufs/ufs/quota.h
+++ b/sys/ufs/ufs/quota.h
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)quota.h 8.1 (Berkeley) 6/11/93
- * $Id: quota.h,v 1.2 1994/08/02 07:54:51 davidg Exp $
+ * $Id: quota.h,v 1.3 1994/08/21 07:16:16 paul Exp $
*/
#ifndef _UFS_UFS_QUOTA_
@@ -179,16 +179,9 @@ struct ufsmount;
struct vnode;
__BEGIN_DECLS
int chkdq __P((struct inode *, long, struct ucred *, int));
-int chkdqchg __P((struct inode *, long, struct ucred *, int));
int chkiq __P((struct inode *, long, struct ucred *, int));
-int chkiqchg __P((struct inode *, long, struct ucred *, int));
-void dqflush __P((struct vnode *));
-int dqget __P((struct vnode *,
- u_long, struct ufsmount *, int, struct dquot **));
void dqinit __P((void));
-void dqref __P((struct dquot *));
void dqrele __P((struct vnode *, struct dquot *));
-int dqsync __P((struct vnode *, struct dquot *));
int getinoquota __P((struct inode *));
int getquota __P((struct mount *, u_long, int, caddr_t));
int qsync __P((struct mount *mp));
@@ -199,10 +192,5 @@ int setuse __P((struct mount *, u_long, int, caddr_t));
int ufs_quotactl __P((struct mount *, int, uid_t, caddr_t, struct proc *));
__END_DECLS
-#ifdef DIAGNOSTIC
-__BEGIN_DECLS
-void chkdquot __P((struct inode *));
-__END_DECLS
-#endif
#endif /* _QUOTA_ */
diff --git a/sys/ufs/ufs/ufs_quota.c b/sys/ufs/ufs/ufs_quota.c
index 9b1f621..4b578ea 100644
--- a/sys/ufs/ufs/ufs_quota.c
+++ b/sys/ufs/ufs/ufs_quota.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)ufs_quota.c 8.2 (Berkeley) 12/30/93
- * $Id: ufs_quota.c,v 1.4 1994/10/08 06:57:27 phk Exp $
+ * $Id: ufs_quota.c,v 1.5 1995/05/30 08:15:36 rgrimes Exp $
*/
#include <sys/param.h>
#include <sys/kernel.h>
@@ -56,6 +56,18 @@
*/
static char *quotatypes[] = INITQFNAMES;
+static int chkdqchg __P((struct inode *, long, struct ucred *, int));
+static int chkiqchg __P((struct inode *, long, struct ucred *, int));
+static int dqget __P((struct vnode *,
+ u_long, struct ufsmount *, int, struct dquot **));
+static void dqref __P((struct dquot *));
+static int dqsync __P((struct vnode *, struct dquot *));
+static void dqflush __P((struct vnode *));
+
+#ifdef DIAGNOSTIC
+static void chkdquot __P((struct inode *));
+#endif
+
/*
* Set up the quotas for an inode.
*
@@ -158,7 +170,7 @@ chkdq(ip, change, cred, flags)
* Check for a valid change to a users allocation.
* Issue an error message if appropriate.
*/
-int
+static int
chkdqchg(ip, change, cred, type)
struct inode *ip;
long change;
@@ -274,7 +286,7 @@ chkiq(ip, change, cred, flags)
* Check for a valid change to a users allocation.
* Issue an error message if appropriate.
*/
-int
+static int
chkiqchg(ip, change, cred, type)
struct inode *ip;
long change;
@@ -331,7 +343,7 @@ chkiqchg(ip, change, cred, type)
* On filesystems with quotas enabled, it is an error for a file to change
* size and not to have a dquot structure associated with it.
*/
-void
+static void
chkdquot(ip)
register struct inode *ip;
{
@@ -667,15 +679,15 @@ again:
/*
* Code pertaining to management of the in-core dquot data structures.
*/
-struct dquot **dqhashtbl;
-u_long dqhash;
+static struct dquot **dqhashtbl;
+static u_long dqhash;
/*
* Dquot free list.
*/
#define DQUOTINC 5 /* minimum free dquots desired */
-struct dquot *dqfreel, **dqback = &dqfreel;
-long numdquot, desireddquot = DQUOTINC;
+static struct dquot *dqfreel, **dqback = &dqfreel;
+static long numdquot, desireddquot = DQUOTINC;
/*
* Initialize the quota system.
@@ -691,7 +703,7 @@ dqinit()
* Obtain a dquot structure for the specified identifier and quota file
* reading the information from the file if necessary.
*/
-int
+static int
dqget(vp, id, ump, type, dqp)
struct vnode *vp;
u_long id;
@@ -830,7 +842,7 @@ dqget(vp, id, ump, type, dqp)
/*
* Obtain a reference to a dquot.
*/
-void
+static void
dqref(dq)
struct dquot *dq;
{
@@ -871,7 +883,7 @@ dqrele(vp, dq)
/*
* Update the disk quota in the quota file.
*/
-int
+static int
dqsync(vp, dq)
struct vnode *vp;
register struct dquot *dq;
@@ -922,7 +934,7 @@ dqsync(vp, dq)
/*
* Flush all entries from the cache for a particular vnode.
*/
-void
+static void
dqflush(vp)
register struct vnode *vp;
{
OpenPOWER on IntegriCloud