Permalink
Commits on Dec 10, 2011
  1. VFS accounting: add in-memory storage counters

    * Use a red-black tree of small arrays to store uid and gid accounting
      information.
      User and group ids often come in small groups of consecutive numbers;
      small arrays have a high probability of having more than one element
      used at the same time, reducing pointer chasing in the binary tree.
    
    * Also use a global per mount-point counter
    
    * Only enable data collection for volumes which have been properly
      initialized
    
    * Protect the counters by a per mount-point spinlock
    Francois Tigeot committed with François Tigeot Aug 13, 2011
  2. installer: Remove some unused variables and code.

    All that remains is checking if the user tries to make / tmpfs backed.
    Sascha Wildner committed Dec 10, 2011
  3. kernel/netgraph7: Replace usage of MALLOC/FREE with kmalloc/kfree her…

    …e too.
    
    Requested-by: Nuno Antunes
    Sascha Wildner committed Dec 10, 2011
  4. vquota(8): Silence 'has more than one link' messages.

    Also, print the usage if an unknown command is given.
    
    In the manual page, note that the output size is in bytes.
    Sascha Wildner committed Dec 10, 2011
  5. bsd.kern.mk: Add a missing space.

    Sascha Wildner committed Dec 10, 2011
  6. Add -Wold-style-declaration to the kernel's warning flags.

    While here, clean up the comments a bit. -Wextra cleanness is not
    something we're aiming for. What we want are warnings that help
    catching bugs and/or keeping the code nice, but at the same time
    don't get on anyone's nerves.
    Sascha Wildner committed Dec 10, 2011
  7. Add vknetd to etc/rc.d/Makefile.

    Sascha Wildner committed Dec 10, 2011
  8. <sys/ktr.h>: Move static to the first place in declarations.

    The C standard discourages placing storage-class specifiers (typedef,
    extern, static, auto, register) other than first in a declaration since
    C90.
    Sascha Wildner committed Dec 10, 2011
  9. kernel: Add acpi_if.h to the ACPI module Makefiles.

    Sascha Wildner committed Dec 10, 2011
Commits on Dec 9, 2011
  1. pfctl(8): Add missing braces.

    Sascha Wildner committed Dec 9, 2011
  2. pw(8): Add missing braces.

    Sascha Wildner committed Dec 9, 2011
  3. dfregress(8): Add some missing braces.

    Sascha Wildner committed Dec 9, 2011
  4. Some cosmetics: #if(0) -> #if 0

    Sascha Wildner committed Dec 9, 2011
  5. kernel/nfs: Fix a bug due to missing braces.

    The lwkt_reltoken() was added in c6b43e9
    but it was forgotten to put braces around the if's body (now having
    lwkt_reltoken() and the return()).
    Sascha Wildner committed Dec 9, 2011
Commits on Dec 8, 2011
  1. sf(4): Remove a duplicated flag in a header.

    Sascha Wildner committed Dec 8, 2011
  2. rc.conf.5: Start a sentence in upper case.

    Sascha Wildner committed Dec 8, 2011
  3. acpi: Include acdragonfly.h from acenv.h.

    Sascha Wildner committed Dec 8, 2011
  4. kernel - Support bdwrite() on tmpfs buffer cache buffers

    * tmpfs itself does not call bdwrite() when no swap space has been
      allocated but certain system side effects such as nvtruncbuf()
      when a file is truncated CAN cause bdwrite() to be called.
    
      This eventually causes the buffer to run through tmpfs's strategy
      function.
    
    * Adjust the strategy function to handle the no-swap case by marking
      the underlying pages dirty and valid and completing the I/O.
    
    * Also handle the case when swap exists but fills up.  If the
      swap_strategy() function fails with ENOMEM fall-back to again
      marking the pages dirty andvalid and completing the I/O.
    
      This allows tmpfs to fill up to the system's total memory+swap instead
      of just the system's swap.
    Matthew Dillon committed Dec 8, 2011
  5. tcp: Don't check PRUS_OOB again in tcp_usr_send

    - It is not necessary; it was checked in sosendtcp
    - It does not work w/ asynchronized pru_send
    
    Reminded-by: dillon@
    Sepherosa Ziehau committed Dec 8, 2011
  6. kernel - Fix missing token release on I/O error during exec

    * If an EIO occurs while exec is mapping pages from the binary we need
      to drop the vm_object we are holding before returning.
    
    * Fixes panic when the system runs out of memory and no swap is present.
    Matthew Dillon committed Dec 8, 2011
  7. kernel - Remove partially commit debug code

    * Remove partially committed debug code that will cause the compile
      to fail.
    Matthew Dillon committed Dec 8, 2011
  8. kernel - Remove unneeded initialization

    * vm_object->flags is set to 0 by _vm_object_allocate() and does not
      need to be set to 0 again.
    Matthew Dillon committed Dec 8, 2011
  9. kernel - Clear the quick-return flag when changing PSL_IOPL.

    * Make sure we do a full syscall return when changing PSL_IOPL.
    Matthew Dillon committed Dec 8, 2011
  10. kernel - Add additional safety assertions in the pmap path

    * Assert additional state is correct in pmap_pinit()
    
    * Assert that the critical section count makes preemption impossible
      in pmap_interlock_wait(), which is called from the depths of swtch.s
      during a thread switch.
    Matthew Dillon committed Dec 8, 2011
  11. kernel - Adjust stack by an addition 128 in sendupcall()

    * Adjust stack by an addition 128 in sendupcall() for red-zone
      Note however that this code is currently unused, so it has no effect.
    
    * If getmemsize() finds an overlapping region we break out of the inner
      loop so we can continue the outer loop.
    
    Reported-by: swildner
    Matthew Dillon committed Dec 8, 2011
  12. kernel - Add -fno-stack-protector for kernel build

    * Add -fno-stack-protector for kernel build in order to be consistent
      with the other platform kernel builds
    
    * Has no effect with the current version of gcc but may prevent bad vibes
      in the future.
    Matthew Dillon committed Dec 8, 2011
  13. kernel - Do not use LK_NOWAIT for vfs_busy() after initialization

    * Minor adjustment, this is more appropriate then what we had but it
      will not effect the code since nobody references the mp yet at this
      point (thus the lock always succeeds even w/ LK_NOWAIT).
    Matthew Dillon committed Dec 8, 2011
  14. kernel - Fix panic during diskless mount

    * Remove improper vfs_unbusy()'s from the nfs_mountroot path.  The mount
      is unbusied by the caller instead.  This fixes a lockmgr panic.
    Matthew Dillon committed Dec 8, 2011
  15. kernel - Fix endless nfs error 70 during shutdown

    * When shutting down NFS rw mounts left over buffers may not be able to
      flush during a forced unmount.
    
    * When unable to flush during a forced unmount mark the bp EIO instead
      of ESTALE and also mark it B_INVAL to remove the buffer from the the
      vnode.
    Matthew Dillon committed Dec 8, 2011
  16. kernel - Add TDF_RUNNING assertions

    * Assert that the target lwkt thread being switched to is not flagged as
      running.
    
    * Assert that the originating lwkt thread being switched from is flagged as
      running.
    
    * Fix the running flag initial condition for the idle thread.
    Matthew Dillon committed Dec 8, 2011