define for nfs4stateid.other constant

This commit is contained in:
Olga Kornievskaia 2011-03-18 10:44:59 -04:00 committed by unknown
parent 49f141680a
commit b6d6767341
6 changed files with 7 additions and 5 deletions

View file

@ -239,7 +239,8 @@ static enum pnfs_status layout_update_stateid(
if (state->stateid.seqid == 0) {
/* save a new layout stateid */
memcpy(&state->stateid, stateid, sizeof(stateid4));
} else if (memcmp(&state->stateid.other, stateid->other, 12) == 0) {
} else if (memcmp(&state->stateid.other, stateid->other,
NFS4_STATEID_OTHER) == 0) {
/* update an existing layout stateid */
state->stateid.seqid = stateid->seqid;
} else {