{
struct inode *inode;
struct file_lock file_lock;
+ struct nfs4_stateowner *so;
int error;
__be32 status;
if (check_lock_length(lockt->lt_offset, lockt->lt_length))
return nfserr_inval;
- lockt->lt_stateowner = NULL;
nfs4_lock_state();
status = nfserr_stale_clientid;
goto out;
}
- lockt->lt_stateowner = find_lockstateowner_str(inode,
+ so = find_lockstateowner_str(inode,
&lockt->lt_clientid, &lockt->lt_owner);
- if (lockt->lt_stateowner)
- file_lock.fl_owner = (fl_owner_t)lockt->lt_stateowner;
+ if (so)
+ file_lock.fl_owner = (fl_owner_t)so;
file_lock.fl_pid = current->tgid;
file_lock.fl_flags = FL_POSIX;
struct xdr_netobj lt_owner;
u64 lt_offset;
u64 lt_length;
- struct nfs4_stateowner * lt_stateowner;
struct nfsd4_lock_denied lt_denied;
};