Strict compile issues, and French to English comment conversions.

    Port from 1.5:
    8792f706f729f83585e5d4456bbd93baa09202fb

Signed-off-by: Venkateswararao Jujjuri "<jvrao@linux.vnet.ibm.com>
Valgrind fixes.

    Port from 1.5.x:
    e774de9f7b717c42a3b1d7c000db755dcdda9c0f

Signed-off-by: Venkateswararao Jujjuri "<jvrao@linux.vnet.ibm.com>
Keep proper account of hash count.

    Port from 1.5.x:
    13ec5fa1d1c8034519347014ff4c071493ee7d4d

Signed-off-by: Venkateswararao Jujjuri "<jvrao@linux.vnet.ibm.com>
Calculation of fd usage and proper thread wait time in lru.

As the number of file descriptors open and the rate file
descriptors are created get higher, garbage collection of
fds will become increasingly faster. This is done by
adjusting the amount of time the lru gc thread sleeps.

    Port from 1.5.x:
    358ea07ea1fe1063159bd0c4bcd1539221925606

Signed-off-by: Jeremy Bongio <jbongio@us.ibm.com>
Signed-off-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Fix few missing places where the entry contents are being checked without the
content lock. Also fix made wrt lock locking order where the attrlock
is taken first before content lock if both needs to be held
simultaneously.

    Port from 1.5.x:
    ba706c89fcecbd35374ecab4aa7942afdb2ab571

Signed-off-by: Venkateswararao Jujjuri "<jvrao@linux.vnet.ibm.com>
Avoid deadlocks and lru_thread hang my making sure that it won't process the
entry until it is ready.  Also move lock initialization to cache_inode_lru_get.

    Port from 1.5.x:
    5213b92276787472e2a09267cc53101724dd48f1

Signed-off-by: Venkateswararao Jujjuri "<jvrao@linux.vnet.ibm.com>
Signed-off-by: Jim Wahlig <jgwahlig@us.ibm.com>
Make sure cache_inode_lru_get tries out lanes in different order
while reaping.

    Port from 1.5.x:
    c273d55a24e2054247da59c5ca455a290c775b57

Signed-off-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Don't hold the content lock in WR mode across high latency operations.

    Flags needs to be collected under lock before checking;
    Otherwise a race with other close+open could change the fd mode and
    may result in an write failure with EACCESS.

(comibined) Port from 1.5.x:
    534dfde2318f44aed191782978f582266c5b6420
    bde4770eff7bef3e843c20896c0e44a56df06b67

Signed-off-by: Venkateswararao Jujjuri "<jvrao@linux.vnet.ibm.com>
Make svc_getargs mesage as INFO and make GPFS log level INFO by default.

    Partial Port from 1.5.x
    f0c81ba56ef8bb914aa201b5ece0f950d6238a91

Signed-off-by: Venkateswararao Jujjuri "<jvrao@linux.vnet.ibm.com>
Part of FTDC enhancements:
- Main error logging is done by Return() macro.
- In addition, posix2fsal_error logs when there is 1-to-many mapping.
- All additional messages are at the LogInfo level.
- Additional logging is added for debug purposes; added TODO to
  remove these additional logs before making it a production level code.

Port from 1.5.x:
354c0ac4a7305727221daf9617ffa4d2bbf57459

Signed-off-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Fix cache_inode_lock_trust_attrs to take the configured grace_period_attr
into account. Also fix a small Log message typo.

Port from 1.5.x:
631d3df3865bc0912d76a6f603cddea86aa92efe

Signed-off-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Add proper return code for commit failures.

Port from 1.5.x:
2623379f89821112a9d1d19dc7afdc2a66eb451e

Signed-off-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
No need to disable the fd cache if it is already disabled.

    Port from 1.5.x:
    67598ecc938f57cab8d253d740233d7dfa5fc69c

Signed-off-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Make sure that we process LRU1 and LRU2 cache even if fd cache is
disabled.

    Ported from 1.5.x:
    2dadf46fa8ca5ac6a3369860fd24fcf4a00d5f2d

Signed-off-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Set extremis flag in lru_thread only if fd cache is enabled.

    Ported from 1.5.x:
    0c19beed17199e1ff8e5c6e23b8ba2876578b106

Signed-off-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Add fsalgpfsext to install targets.

Signed-off-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Signed-off-by:    Jeremy Bongio <jbongio@us.ibm.com>
Added a new log function to print debug info during specific log levels.

The new function will trigger debug info like backtraces, global
variables, etc. to be printed after any log message that is less then or
equal to the log level of LOG_MESSAGE_DEBUGINFO, a new component.
LOG_MESSAGE_DEBUGINFO is set to NIV_NULL by default, so it has to be
explicitly enabled.

    Ported from 1.5.x:
    bf2652aac2c762ecde75133db85d74285b270f91

Signed-off-by: Jeremy Bongio <jbongio@linux.vnet.ibm.com>
Signed-off-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Added perl script to change or list log level through snmp.

ported from 1.5.x
d8c2c504efb594fb7e822aba779479ed57e0eabc

Signed-off-by: Jeremy Bongio <jbongio@linux.vnet.ibm.com>
Signed-off-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Convert French comments/messages to English in logging infrastructure.

Ported from 1.5.x:
c66cca71081da2f05b1a757f930345c9fbfcf7fc

Signed-off-by: Jeremy Bongio <jbongio@linux.vnet.ibm.com>
Signed-off-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Output more data when a svc_sendreply fails.

Ported from 1.5.x:
b3eadcf0206425280b8d458a69fe1b26e425714d

Signed-off-by: Jeremy Bongio <jbongio@linux.vnet.ibm.com>
Signed-off-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>