The 'end' word was missed in the comment.

MFC after:     3 days


git-svn-id: svn://svn.freebsd.org/base/head@246554 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Avoid use of register variables, which some compilers (e.g. clang)
don't like. It makes the code a little clearer as well.

MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@246556 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
In the setfacl(1) manual page, make it clear that for NFSv4 ACLs,
one should really use -a and -x instead of -m.

MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@246557 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Improve description of the "-m" option to setfacl(1).

Submitted by:	scottl
MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@246558 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix NFSv4 permission description in setfacl(1) manual page: the 'D'
means delete_child, not delete.

MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@246559 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
patch: Follow original versioning convention.

According to the README file [1] the 12u variant, unlike
the 12g variant, contains no copyleft code. It is therefore
convenient to keep using the original versioning scheme to
prevent confusions.

[1] http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/patch/README


git-svn-id: svn://svn.freebsd.org/base/head@246560 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
add semicolon to end of CALLOUT_HANDLE_INITIALIZER example.


git-svn-id: svn://svn.freebsd.org/base/head@246561 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Remove unused MAXSYMLINKLEN macro.

Reviewed by:	mckusick
PR:		kern/175794
MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@246562 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
ext2fs: make e2fs_maxcontig local and remove tautological check.

e2fs_maxcontig was modelled after UFS when bringing the
"Orlov allocator" to ext2. On UFS fs_maxcontig is kept in the
superblock and is used by userland tools (fsck and growfs),

In ext2 this information is volatile so it is not available
for userland tools, so in this case it doesn't have sense
to carry it in the in-memory superblock.

Also remove a pointless check for MAX(1, x) > 0.

Submitted by:	Christoph Mallon
MFC after:	2 weeks


git-svn-id: svn://svn.freebsd.org/base/head@246563 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
ext2fs: Replace redundant EXT2_MIN_BLOCK with EXT2_MIN_BLOCK_SIZE.

Submitted by:	Christoph Mallon
MFC after:	2 weeks


git-svn-id: svn://svn.freebsd.org/base/head@246564 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix regression issue after r244503:
Correct init order to fix a NULL pointer access.

MFC after:	1 week
Reported by:	Ian FREISLICH


git-svn-id: svn://svn.freebsd.org/base/head@246565 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
In r246282 the KTR_ENTRIES was specified with syntax error, fix it so 'make
universe' would work.

MFC after:	12 days
X-MFC-with:	r246282


git-svn-id: svn://svn.freebsd.org/base/head@246568 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Make sure we don't leak command buffers when a USB
command transfer fails.

MFC after:	1 week
Reported by:	Ian FREISLICH


git-svn-id: svn://svn.freebsd.org/base/head@246570 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Correctly list the usbloader dependencies.


git-svn-id: svn://svn.freebsd.org/base/head@246571 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Do not hold locks around hardware context reads.

MFC after:	3 days


git-svn-id: svn://svn.freebsd.org/base/head@246575 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
The encryption type field needs to be preserved for each descriptor
making up a frame, in both a sub-frame and for all frames in an
aggregate.

Tested:

* AR5416, STA mode


git-svn-id: svn://svn.freebsd.org/base/head@246579 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix LINT build on amd64.


git-svn-id: svn://svn.freebsd.org/base/head@246581 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix LINT build for ARM.


git-svn-id: svn://svn.freebsd.org/base/head@246585 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFV r245512:

 * Illumos zfs issue #3035 [1] LZ4 compression support in ZFS.

LZ4 is a new high-speed BSD-licensed compression algorithm created
by Yann Collet that delivers very high compression and decompression
performance compared to lzjb (>50% faster on compression, >80% faster
on decompression and around 3x faster on compression of incompressible
data), while giving better compression ratio [1].

This version of LZ4 corresponds to upstream's [2] revision 85.

Please note that for obvious reasons this is not backward read
compatible.  This means once a pool have LZ4 compressed data, these
data can no longer be read by older ZFS implementations.

Local changes:

 - On-stack hash table disabled and using kernel slab allocator
   instead, at this time.  This requires larger kernel thread stack
   for zio workers.  This may change in the future should we adjusted
   the zio workers' thread stack size.
 - likely and unlikely will be undefined if they are already defined,
   this is required for i386 XEN build.
 - Removed De Bruijn sequence based __builtin_ctz family of builtins
   in favor of the latter.  Both GCC and clang supports these builtins.
 - Changed the way the LZ4 code detects endianness.
 - Manual pages modifications to mention the feature based on Illumos
   counterpart.
 - Boot loader changes to make it support LZ4 decompression.

[1] https://www.illumos.org/issues/3035
[2] http://code.google.com/p/lz4/source/list

Obtained from:	Illumos (13921:9d721847e469)
Tested on:	FreeBSD/amd64
MFC after:	1 month


git-svn-id: svn://svn.freebsd.org/base/head@246586 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
mdoc: Remove EOL whitespace.


git-svn-id: svn://svn.freebsd.org/base/head@246587 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f