summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2012-01-29 06:40:57 +0000
committerdholland <dholland@NetBSD.org>2012-01-29 06:40:57 +0000
commit07baaa7aa13e9b5bb10bb95ea13884784ba8002a (patch)
tree1b96cb0d18d81484889179070bcf2c6fa39b172c /include
parent9cf7cb7d2f3c3d9b63ddc5f3cf61d8457eb78809 (diff)
Per the FS-independent schema, get one quotaval at a time from the
filesystem, instead of blocks and files together. This results in fetching each FS-level quota entry twice and therefore doing slightly more work, but (1) quota access isn't a critical path and (2) after fetching the block values the file values will be hot in the cache, so it won't add much total time. Also move more of the FS-independent defintions from <quota.h> to <sys/quota.h> so we can use them internally. Step 4 of 5 for QUOTACTL_GET. Note: this change requires a kernel version bump.
Diffstat (limited to 'include')
-rw-r--r--include/quota.h20
1 files changed, 0 insertions, 20 deletions
diff --git a/include/quota.h b/include/quota.h
index 9ef0e87a339..28bfcf1bbde 100644
--- a/include/quota.h
+++ b/include/quota.h
@@ -36,26 +36,6 @@
struct quotahandle; /* Opaque. */
struct quotacursor; /* Opaque. */
-/* quota id types (entities being billed) */
-#define QUOTA_IDTYPE_USER 0
-#define QUOTA_IDTYPE_GROUP 1
-
-/* quota object types (things being limited) */
-#define QUOTA_OBJTYPE_BLOCKS 0
-#define QUOTA_OBJTYPE_FILES 1
-
-/* limit value for "no limit" */
-#define QUOTA_NOLIMIT ((uint64_t)0xffffffffffffffffULL)
-
-/* time value for "no time" */
-#define QUOTA_NOTIME ((time_t)-1)
-
-
-struct quotakey {
- int qk_idtype;
- id_t qk_id;
- int qk_objtype;
-};
void quotaval_clear(struct quotaval *);