Put claim delegation checks in a separate function

Take claim delegation checks from nfs4_op_open(), and create a new
function open4_claim_deleg(). No functional change.

Signed-off-by: Malahal Naineni <malahal@us.ibm.com>
Reviewed-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Trivial changes in open4_claim_deleg()

Removed utfname validation checks as nfs4_utf8string2dynamic does the
same. glist_entry() never returns NULL, so removed that check!

Signed-off-by: Malahal Naineni <malahal@us.ibm.com>
Reviewed-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Fix a logDebug accessing incorrect utf8string with CLAIM_DELEGATE_PREV

Signed-off-by: Malahal Naineni <malahal@us.ibm.com>
Reviewed-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Fail requests with bad stateid in CLAIM_DELEGATE_CUR claim type

Signed-off-by: Malahal Naineni <malahal@us.ibm.com>
Reviewed-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Do not send attrs which are NA to current protocol.

Do not send attributes which are not recognised by the current
protocol in supported_attributes and in attribute list.

Signed-off-by: Srikrishan Malik <srimalik@in.ibm.com>
Merge remote-tracking branch 'ganltc/for-V2.2-dev-4' into next

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>