Commit Graph

113753 Commits

Author SHA1 Message Date
dholland
12763e329e Package up the args of QUOTACTL_DELETE as a struct quotakey. 2012-01-29 06:55:44 +00:00
dholland
6bd2c83ccb QUOTACTL_CLEAR -> QUOTACTL_DELETE to match intended API and user API. 2012-01-29 06:54:34 +00:00
dholland
7d693dece1 Improve the quota2 QUOTACTL_CLEAR code to allow clearing blocks and
files independently.

Note: this change requires a kernel version bump.
2012-01-29 06:53:35 +00:00
dholland
8d41e265da The handling of QUOTACTL_CLEAR does not use the proplib data
dictionary, so don't pass it.

Note: this change requires a kernel version bump.
2012-01-29 06:52:38 +00:00
dholland
9ab480f561 Move toplevel proplib iteration of QUOTACTL_CLEAR to fs-independent code.
Note: this change requires a kernel version bump.
2012-01-29 06:51:42 +00:00
dholland
8f2b54ae34 Tidy up a bit. 2012-01-29 06:50:53 +00:00
dholland
a34104355f Whitespace. 2012-01-29 06:50:15 +00:00
dholland
de768ec295 Rename QUOTACTL_SET to QUOTACTL_PUT, to match future intended API. 2012-01-29 06:49:43 +00:00
dholland
3ba1349dba Combine the miscellaneous QUOTACTL_SET args into a struct quotakey.
Note: this change requires a kernel version bump.
2012-01-29 06:48:50 +00:00
dholland
cacecc239e Pass only one objtype and its quotaval to QUOTACTL_SET at one time.
(The backend code to handle this is a lot tidier than I expected given
that the proplib code doesn't allow setting blocks and files
independently; I was afraid there would turn out to be a reason for
that...)

Note: this change requires a kernel version bump.
2012-01-29 06:47:38 +00:00
dholland
6243de696f For QUOTACTL_SET in quota2, use the quotaval data instead of proplib. 2012-01-29 06:46:49 +00:00
dholland
552fc424d4 For QUOTACTL_SET in quota1, use the quotaval data instead of proplib. 2012-01-29 06:46:16 +00:00
dholland
96fbfa3847 Provide quota info to QUOTACTL_SET as two struct quotaval points
as well as via proplib.

Note: this change requires a kernel version bump.
2012-01-29 06:45:25 +00:00
dholland
6bee945a2e Move the top level iteration for QUOTACTL_SET from ufs to vfs_quotactl.
Note: this change requires a kernel version bump.
2012-01-29 06:44:33 +00:00
dholland
0d8efe0a0f Improve comments. 2012-01-29 06:43:34 +00:00
dholland
c4d6205264 Whitespace. 2012-01-29 06:42:14 +00:00
dholland
ea83d91408 Use struct quotakey with QUOTACTL_GET. Tidy up accordingly.
Step 5 of 5 for QUOTACTL_GET.

Note: this change requires a kernel version bump.
2012-01-29 06:41:41 +00:00
dholland
d87a2031f8 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.
2012-01-29 06:40:57 +00:00
dholland
f814977078 Move what was second-layer proplib frobbing for QUOTACTL_GET to
FS-independent code. (Step 3 of probably 5 for QUOTACTL_GET.)

Note: this change requires a kernel version bump.
2012-01-29 06:39:36 +00:00
dholland
1d762ff060 Move second-layer proplib frobbing within ufs quota code up to the
first layer. (Step 2 of several for QUOTACTL_GET.)
2012-01-29 06:38:23 +00:00
dholland
2ce5210d06 Move first-layer proplib frobbing for QUOTACTL_GET to FS-independent code.
(step 1 of several)

Note: this change requires a kernel version bump.
2012-01-29 06:37:30 +00:00
dholland
2d86641bb5 Move proplib frobbing for QUOTACTL_GETVERSION to FS-independent code.
Note: this change requires a kernel version bump.
2012-01-29 06:36:50 +00:00
dholland
77f413b088 Introduce struct vfs_quotactl_args. Use it.
This change uglifies vfs_quotactl some in order to make room for
moving operation-specific but FS-independent logic out of ufs_quota.c.

Note: this change requires a kernel version bump.
2012-01-29 06:36:06 +00:00
dholland
bfbd24c61d Move the proplib-based quota command dispatching (that is, the code
that knows the magic string names for the allowed actions) out of
UFS-specific code and to fs-independent code.

This introduces QUOTACTL_* operation codes and changes the signature
of VFS_QUOTACTL() again for compile safety.

Note: this change requires a kernel version bump.
2012-01-29 06:34:57 +00:00
dholland
c76cce746c Add sys/quotactl.h. This will hold the definitions for quotactl, which
are not supposed to be exposed to applications. (Only to libquota.)

So far it doesn't actually contain anything yet.
2012-01-29 06:33:51 +00:00
dholland
b6ede1b91e Move the code for iterating over the multiple RPC calls in a quota
proplib XML packet to vfs_quotactl.c out of sys/ufs/ufs.

Add a dummy extra arg to VFS_QUOTACTL for compile safety.

Note: this change requires a kernel version bump.
2012-01-29 06:32:43 +00:00
dholland
b0d7bab70f Add vfs_quotactl() in between the syscall and VFS_QUOTACTL. Call it
from the COMPAT_50 code as well as the current sys_quotactl instead
of going directly to VFS_QUOTACTL. Doesn't actually do anything yet.
2012-01-29 06:29:04 +00:00
dholland
749c2c6e19 Add vfs_quotactl.c. This is where filesystem-independent quota
handling will go.
2012-01-29 06:26:54 +00:00
dholland
7950da9e90 Change dqblk_to_quotaval() from quota1_subr.c to dqblk_to_quotavals(),
and pass in two single quotaval structs (for blocks and inodes)
instead of an array of (implicitly) QUOTA_NLIMITS quotaval structs
indexed by constants from quotaprop.h.

Note: because this code is used by COMPAT_50 as well as ufs, this
change requires a kernel version bump. (The code is also used by
edquota, but via .PATH so it's not ABI-sensitive there.)
2012-01-29 06:23:20 +00:00
nonaka
5295a64fde use FS_UFS[12]_MAGIC_SWAPPED instead of bswap32(FS_UFS[12]_MAGIC). 2012-01-29 00:58:13 +00:00
christos
03aa0179fc Bump SYMTAB_SPACE 2012-01-29 00:50:59 +00:00
rmind
8effb66e15 - Instead of kmem_cache_max, calculate max index and avoid a shift.
- Use __read_mostly and __cacheline_aligned.
- Make kmem_{intr_alloc,free} public.
- Misc.
2012-01-28 23:09:06 +00:00
rmind
9ff9ca4853 - Make subr_vmem.c compile as standalone again.
- Reduce some #ifdefs.
2012-01-28 23:05:48 +00:00
rmind
4177c9beb4 Improve description on struct vm_page and explain locking a little bit more. 2012-01-28 19:12:10 +00:00
para
9c9daafc45 replacing malloc(9) with kmem(9)
wapbl_entries get there own pool, they are freed from softint context

ok: rmind@
2012-01-28 18:02:56 +00:00
skrll
81c1d7f0b6 Typo in comment. 2012-01-28 16:30:23 +00:00
joerg
609d852960 Include sys/malloc.h for MALLOC_DECLARE. 2012-01-28 16:24:35 +00:00
matt
0aba3d8d4d Since we don't do MULTIPROCESSOR, and hence preemption, locking the pvlists
doesn't really matter.
2012-01-28 16:16:41 +00:00
matt
64a05b1083 Replace locking checks with uvm_page_locked_p. 2012-01-28 15:43:34 +00:00
rmind
247885b64f Describe UVM object and explain lock sharing a little. 2012-01-28 14:37:35 +00:00
rmind
b4ccb4c5f9 Welcome to 5.99.61: major UVM/kmem/vmem changes, tsleep and wakeup_one removal. 2012-01-28 12:27:30 +00:00
rmind
9a80847a9f Remove obsolete ltsleep(9) and wakeup_one(9). 2012-01-28 12:22:33 +00:00
cherry
cbdea16d58 Update comments to remove references to alternate pte space. 2012-01-28 12:15:19 +00:00
cherry
d33482621c Fix pae xen build. 2012-01-28 08:57:09 +00:00
nisimura
cbcafca122 Add UDA1341TS audio CODEC support. Code is written by
Paul Fleischer.
2012-01-28 08:37:22 +00:00
nisimura
3e4eba9a43 - add DM9000 internal PHY manipulating routines.
- now capable of auto-negotiation, use this as default media selection.
- add multicast filter support.
- code cleanup.

Code update from Paul Fleischer.
2012-01-28 08:29:55 +00:00
cherry
6bed7d4e8c stop using alternate pde mapping in xen pmap 2012-01-28 07:19:17 +00:00
jakllsch
c3764b1457 I have a feeling 133333334 was off-by-one. 2012-01-28 03:10:26 +00:00
jakllsch
6b253b77b5 Constify sysclktbl and use __arraycount thereon. 2012-01-28 03:09:28 +00:00
rmind
833816ab75 Replace tun_lock with mutex(9). XXX: too far from being MP-safe yet. 2012-01-28 01:02:27 +00:00