Add fsalgpfsext to install targets.
No need to decrement client reference in this routine.

Ported from 1.5.x 9d415e7596010e2d800ff66b04ee5c58e70ccb0d

Signed-off-by: Jim Wahlig <jgwahlig@us.ibm.com>
Signed-off-by: Frank Filz <ffilz@us.ibm.com>
Signed-off-by: Matt Benjamin <matt@linuxbox.com>
Consolidated Config Changes. This file needs to be cleaned-up after
1.5.x -> 2.0.x porting effort is completed.

Signed-off-by: Venkateswararao Jujjuri "<jvrao@linux.vnet.ibm.com>
Add document for 1.5 to 2.0 port

Signed-off-by: Frank Filz <ffilz@us.ibm.com>
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>