Master sync round 2

The series ported Lustre master patches from since last sync (commit fed98fb) up to commit (809d46)
commit 809d46b65bcd1cbca5b75b3c5736d85c77afa225
Author: Bruno Faccini <bruno.faccini@intel.com>
Date:   Wed May 22 11:50:03 2013 +0200

    LU-2665 mdc: Keep resend FLocks

    FLocks requests (particulary F_UNLCKs) can't be trashed
    upon comm problems with Server/MDS nor upon kill/exit,
    thus we need to keep retry/send.


140 patches were scaned and 49 patches were kept. The first two patches are fixes for mistakes made during the first initial port from Lustre to kernel. The rest are ported patches. Please see if it is OK to send them out. Thanks.

Shortlog follows:
Alexander.Boyko (1):
      staging/lustre/crypto: add crc32c module loading to libcfs

Andreas Dilger (2):
      staging/lustre/ldlm: print FID in lvbo_init(), lvbo_update
      staging/lustre/mdt: duplicate link names in directory

Andriy Skulysh (1):
      staging/lustre/ldlm: Fix flock deadlock detection race

Bruce Korb (1):
      staging/lustre/dlmlock: compress out unused space

Bruno Faccini (1):
      staging/lustre/mdc: Keep resend FLocks

Dmitry Eremin (2):
      staging/lustre/llite: A not locked mutex can be unlocked.
      staging/lustre/ptlrpc: race in pinger (use-after-free situation)

Fan Yong (4):
      staging/lustre/lfsck: split LFSCK code from mdd to lfsck
      staging/lustre/lfsck: LFSCK 1.5 technical debts (3)
      staging/lustre/llite: return valid fsid for statfs
      staging/lustre/scrub: purge inconsistenct objects after OI scrub

Hiroya Nozaki (1):
      staging/lustre/ptlrpc: Race between start and stop service threads

Jinshan Xiong (1):
      staging/lustre/layout: introduce new layout for released files

John L. Hammond (7):
      staging/lustre/llite: use READ, WRITE around ll_rw_stats_tally()
      staging/lustre/llite: check alloc in ll_file_data_get, ll_dir_ioctl
      staging/lustre/llite: check ll_prep_md_op_data() using IS_ERR()
      staging/lustre/md: fix lu_ucred.c boilerplate
      staging/lustre/obdclass: use a dummy structure for lu_ref_link
      staging/lustre/llite: call simple_setattr() from ll_md_setattr()
      staging/lustre/procfs: return -ENOMEM from lprocfs_register()

Keith Mannthey (3):
      staging/lustre/osc: Check return code for lu_kmem_init
      staging/lustre/llite: error of listxattr when buffer is small
      staging/lustre/style: removes obsolete EXPORT_SYMTAB macros v2

Li Wei (1):
      staging/lustre/ptlrpc: Translate between host and network errnos

Liu Xuezhao (3):
      staging/lustre/fid: prepare FID module for client server split
      staging/lustre/fld: prepare FLD module for client server split
      staging/lustre/obdclass: add obd_target.h

Nathaniel Clark (1):
      staging/lustre/obdclass: be more careful processing server name

Ned Bass (1):
      staging/lustre/lmv: fix duplicate directory entries

Oleg Drokin (3):
      staging/lustre/ldlm: split client namespaces into active and inactive
      staging/lustre: Only wake up ldlm_poold as frequently as the check interval
      staging/lustre: Make quota namespace refcounting consistent

Patrick Farrell (1):
      staging/lustre/llite: Anonymous dentry incorrectly identified as root

Peng Tao (3):
      staging/lustre: remove bogus ifndef EXPORT_SYMBOL
      staging/lustre/obdclass: restore lu_ref
      staging/lustre/lnet: remove empty file lnet/lnet/api-errno.c

Sebastien Buisson (4):
      staging/lustre: fix 'program hangs' errors
      staging/lustre: fix 'code maintainability' errors
      staging/lustre/build: fix 'data race condition' issues
      staging/lustre/build: fix 'data race condition' issues

Thomas Leibovici (2):
      staging/lustre/lmv: support DNE with HSM.
      staging/lustre/lmv: support DNE with HSM.

jcl (5):
      staging/lustre/mdc: layout lock rpc must not take rpc_lock
      staging/lustre/mdt: add macros for fid string len
      staging/lustre/llapi: add user space method for lov_user_md
      staging/lustre/llite: force lvb_data update after layout change
      staging/lustre/mdt: HSM on disk actions record

wang di (1):
      staging/lustre/llite: missing last bit in ll_have_md_lock