diff options
Diffstat (limited to 'fs/xfs/quota/xfs_qm.h')
-rw-r--r-- | fs/xfs/quota/xfs_qm.h | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/fs/xfs/quota/xfs_qm.h b/fs/xfs/quota/xfs_qm.h index dcf1a7a831d8..b03eecf3b6cb 100644 --- a/fs/xfs/quota/xfs_qm.h +++ b/fs/xfs/quota/xfs_qm.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2000-2004 Silicon Graphics, Inc. All Rights Reserved. | 2 | * Copyright (c) 2000-2005 Silicon Graphics, Inc. All Rights Reserved. |
3 | * | 3 | * |
4 | * This program is free software; you can redistribute it and/or modify it | 4 | * This program is free software; you can redistribute it and/or modify it |
5 | * under the terms of version 2 of the GNU General Public License as | 5 | * under the terms of version 2 of the GNU General Public License as |
@@ -133,8 +133,9 @@ typedef struct xfs_quotainfo { | |||
133 | time_t qi_btimelimit; /* limit for blks timer */ | 133 | time_t qi_btimelimit; /* limit for blks timer */ |
134 | time_t qi_itimelimit; /* limit for inodes timer */ | 134 | time_t qi_itimelimit; /* limit for inodes timer */ |
135 | time_t qi_rtbtimelimit;/* limit for rt blks timer */ | 135 | time_t qi_rtbtimelimit;/* limit for rt blks timer */ |
136 | xfs_qwarncnt_t qi_bwarnlimit; /* limit for num warnings */ | 136 | xfs_qwarncnt_t qi_bwarnlimit; /* limit for blks warnings */ |
137 | xfs_qwarncnt_t qi_iwarnlimit; /* limit for num warnings */ | 137 | xfs_qwarncnt_t qi_iwarnlimit; /* limit for inodes warnings */ |
138 | xfs_qwarncnt_t qi_rtbwarnlimit;/* limit for rt blks warnings */ | ||
138 | mutex_t qi_quotaofflock;/* to serialize quotaoff */ | 139 | mutex_t qi_quotaofflock;/* to serialize quotaoff */ |
139 | xfs_filblks_t qi_dqchunklen; /* # BBs in a chunk of dqs */ | 140 | xfs_filblks_t qi_dqchunklen; /* # BBs in a chunk of dqs */ |
140 | uint qi_dqperchunk; /* # ondisk dqs in above chunk */ | 141 | uint qi_dqperchunk; /* # ondisk dqs in above chunk */ |
@@ -176,6 +177,7 @@ typedef struct xfs_dquot_acct { | |||
176 | 177 | ||
177 | #define XFS_QM_BWARNLIMIT 5 | 178 | #define XFS_QM_BWARNLIMIT 5 |
178 | #define XFS_QM_IWARNLIMIT 5 | 179 | #define XFS_QM_IWARNLIMIT 5 |
180 | #define XFS_QM_RTBWARNLIMIT 5 | ||
179 | 181 | ||
180 | #define XFS_QM_LOCK(xqm) (mutex_lock(&xqm##_lock, PINOD)) | 182 | #define XFS_QM_LOCK(xqm) (mutex_lock(&xqm##_lock, PINOD)) |
181 | #define XFS_QM_UNLOCK(xqm) (mutex_unlock(&xqm##_lock)) | 183 | #define XFS_QM_UNLOCK(xqm) (mutex_unlock(&xqm##_lock)) |
@@ -184,7 +186,6 @@ typedef struct xfs_dquot_acct { | |||
184 | 186 | ||
185 | extern void xfs_mount_reset_sbqflags(xfs_mount_t *); | 187 | extern void xfs_mount_reset_sbqflags(xfs_mount_t *); |
186 | 188 | ||
187 | extern int xfs_qm_init_quotainfo(xfs_mount_t *); | ||
188 | extern void xfs_qm_destroy_quotainfo(xfs_mount_t *); | 189 | extern void xfs_qm_destroy_quotainfo(xfs_mount_t *); |
189 | extern int xfs_qm_mount_quotas(xfs_mount_t *, int); | 190 | extern int xfs_qm_mount_quotas(xfs_mount_t *, int); |
190 | extern void xfs_qm_mount_quotainit(xfs_mount_t *, uint); | 191 | extern void xfs_qm_mount_quotainit(xfs_mount_t *, uint); |
@@ -203,7 +204,7 @@ extern void xfs_qm_dqrele_all_inodes(xfs_mount_t *, uint); | |||
203 | 204 | ||
204 | /* vop stuff */ | 205 | /* vop stuff */ |
205 | extern int xfs_qm_vop_dqalloc(xfs_mount_t *, xfs_inode_t *, | 206 | extern int xfs_qm_vop_dqalloc(xfs_mount_t *, xfs_inode_t *, |
206 | uid_t, gid_t, uint, | 207 | uid_t, gid_t, prid_t, uint, |
207 | xfs_dquot_t **, xfs_dquot_t **); | 208 | xfs_dquot_t **, xfs_dquot_t **); |
208 | extern void xfs_qm_vop_dqattach_and_dqmod_newinode( | 209 | extern void xfs_qm_vop_dqattach_and_dqmod_newinode( |
209 | xfs_trans_t *, xfs_inode_t *, | 210 | xfs_trans_t *, xfs_inode_t *, |
@@ -215,14 +216,9 @@ extern int xfs_qm_vop_chown_reserve(xfs_trans_t *, xfs_inode_t *, | |||
215 | xfs_dquot_t *, xfs_dquot_t *, uint); | 216 | xfs_dquot_t *, xfs_dquot_t *, uint); |
216 | 217 | ||
217 | /* list stuff */ | 218 | /* list stuff */ |
218 | extern void xfs_qm_freelist_init(xfs_frlist_t *); | ||
219 | extern void xfs_qm_freelist_destroy(xfs_frlist_t *); | ||
220 | extern void xfs_qm_freelist_insert(xfs_frlist_t *, xfs_dquot_t *); | ||
221 | extern void xfs_qm_freelist_append(xfs_frlist_t *, xfs_dquot_t *); | 219 | extern void xfs_qm_freelist_append(xfs_frlist_t *, xfs_dquot_t *); |
222 | extern void xfs_qm_freelist_unlink(xfs_dquot_t *); | 220 | extern void xfs_qm_freelist_unlink(xfs_dquot_t *); |
223 | extern int xfs_qm_freelist_lock_nowait(xfs_qm_t *); | 221 | extern int xfs_qm_freelist_lock_nowait(xfs_qm_t *); |
224 | extern int xfs_qm_mplist_nowait(xfs_mount_t *); | ||
225 | extern int xfs_qm_dqhashlock_nowait(xfs_dquot_t *); | ||
226 | 222 | ||
227 | /* system call interface */ | 223 | /* system call interface */ |
228 | extern int xfs_qm_quotactl(bhv_desc_t *, int, int, xfs_caddr_t); | 224 | extern int xfs_qm_quotactl(bhv_desc_t *, int, int, xfs_caddr_t); |