Move container_of up (with related code, lru_run).

In previous reorganization of lru_run, the early return was moved
up, but assignment of entry was not moved, leading to an illegal
access.

Found (sort of) by Coverity, reported by Thomas Favre-Bulle
<thomas.favre-bulle@bull.net>.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>
Add checkpatch configuration file

This ignores things related to the kernel and CamelCase, it can be
modified later.

Signed-off-by: Adam C. Emerson <aemerson@linuxbox.com>
Use LogCrit on idmapping errors.

A fatal error here probably wasn't intended.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>
Ported from 1.5.x: 71cbffce2acfa5c84a0efa099a35b045f6425735

(Fixes RPCSEC_GSS group mapping.)

Signed-off-by: suhrud <supatank@in.ibm.com>
Signed-off-by: Matt Benjamin <matt@linuxbox.com>

Conflicts:
	src/IdMapper/idmapper.c
	src/include/idmapper.h
Code cleanup: glist function name change

To prepare for 2.0 RC, this patch renames init_glist to
glist_init. The function was named this way to avoid a
conflict when building with MySQL support. Since the
later has been dropped along with the POSIX FSAL, a
general rename is done.
Fix fallthrough in cache_inode_destroyer

Thanks to Thomas Fabre-Bulle's coverity report.

Signed-off-by: Adam C. Emerson <aemerson@linuxbox.com>
Finish removing structure-renaming macros

These weren't type safe and some had typos that would start causing
problems if anyone used them.

Signed-off-by: Adam C. Emerson <aemerson@linuxbox.com>
Hpss build: fix install path, don't link MainNFSD/ganesha.nfsd against hpss, only set rpath for the fsal
9P uid2grp: use realloc properly
CMake: do not create "rpm" and "srpm" targets if rpmbuild is not installed.
RPM: better management of files related to XFS support.
CMake : USE_FSAL_SHOOK is to be turned OFF is USE_FSAL_LUSTRE is turned OFF
RPM: for the moment do not generate RPM for HPSS
Merge branch 'phdeniel_next_46' into merge_next

Stripped out the "mount 9p..." patch because all the good stuff
was taken earlier.  This is a remnant of an un-updated submodule

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Merge remote-tracking branch 'tfb-bull/Remove_MySQL_Glist_Hack' into merge_next

ACK Remove ...

Signed-off-by: Jim Lieb <jlieb@panasas.com>