nfsd4: eliminate struct nfs4_cb_recall
The nfs4_cb_recall struct is used only in nfs4_delegation, so its pointer to the containing delegation is unnecessary--we could just use container_of(). But there's no real reason to have this a separate struct at all--just move these fields to nfs4_delegation. Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
This commit is contained in:
parent
c237dc0303
commit
b53d40c507
3 changed files with 18 additions and 29 deletions
|
@ -203,9 +203,8 @@ alloc_init_deleg(struct nfs4_client *clp, struct nfs4_stateid *stp, struct svc_f
|
|||
get_file(stp->st_vfs_file);
|
||||
dp->dl_vfs_file = stp->st_vfs_file;
|
||||
dp->dl_type = type;
|
||||
dp->dl_recall.cbr_dp = NULL;
|
||||
dp->dl_recall.cbr_ident = cb->cb_ident;
|
||||
dp->dl_recall.cbr_trunc = 0;
|
||||
dp->dl_ident = cb->cb_ident;
|
||||
dp->dl_trunc = 0;
|
||||
dp->dl_stateid.si_boot = get_seconds();
|
||||
dp->dl_stateid.si_stateownerid = current_delegid++;
|
||||
dp->dl_stateid.si_fileid = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue