• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/nfsd/

Lines Matching refs:new

79 static struct svc_expkey *svc_expkey_update(struct svc_expkey *new, struct svc_expkey *old);
206 struct svc_expkey *new = container_of(b, struct svc_expkey, h);
208 if (orig->ek_fsidtype != new->ek_fsidtype ||
209 orig->ek_client != new->ek_client ||
210 memcmp(orig->ek_fsid, new->ek_fsid, key_len(orig->ek_fsidtype)) != 0)
218 struct svc_expkey *new = container_of(cnew, struct svc_expkey, h);
222 new->ek_client = item->ek_client;
223 new->ek_fsidtype = item->ek_fsidtype;
225 memcpy(new->ek_fsid, item->ek_fsid, sizeof(new->ek_fsid));
231 struct svc_expkey *new = container_of(cnew, struct svc_expkey, h);
234 new->ek_path = item->ek_path;
290 svc_expkey_update(struct svc_expkey *new, struct svc_expkey *old)
293 int hash = svc_expkey_hash(new);
295 ch = sunrpc_cache_update(&svc_expkey_cache, &new->h,
355 static struct svc_export *svc_export_update(struct svc_export *new,
588 * new values, then see what the result was.
665 struct svc_export *new = container_of(b, struct svc_export, h);
666 return orig->ex_client == new->ex_client &&
667 orig->ex_path.dentry == new->ex_path.dentry &&
668 orig->ex_path.mnt == new->ex_path.mnt;
673 struct svc_export *new = container_of(cnew, struct svc_export, h);
677 new->ex_client = item->ex_client;
678 new->ex_path.dentry = dget(item->ex_path.dentry);
679 new->ex_path.mnt = mntget(item->ex_path.mnt);
680 new->ex_pathname = NULL;
681 new->ex_fslocs.locations = NULL;
682 new->ex_fslocs.locations_count = 0;
683 new->ex_fslocs.migrated = 0;
688 struct svc_export *new = container_of(cnew, struct svc_export, h);
692 new->ex_flags = item->ex_flags;
693 new->ex_anon_uid = item->ex_anon_uid;
694 new->ex_anon_gid = item->ex_anon_gid;
695 new->ex_fsid = item->ex_fsid;
696 new->ex_uuid = item->ex_uuid;
698 new->ex_pathname = item->ex_pathname;
700 new->ex_fslocs.locations = item->ex_fslocs.locations;
702 new->ex_fslocs.locations_count = item->ex_fslocs.locations_count;
704 new->ex_fslocs.migrated = item->ex_fslocs.migrated;
706 new->ex_nflavors = item->ex_nflavors;
708 new->ex_flavors[i] = item->ex_flavors[i];
762 svc_export_update(struct svc_export *new, struct svc_export *old)
767 ch = sunrpc_cache_update(&svc_export_cache, &new->h,
984 struct svc_export new;
1016 memset(&new, 0, sizeof(new));
1046 new.h.expiry_time = NEVER;
1047 new.h.flags = 0;
1048 new.ex_pathname = kstrdup(nxp->ex_path, GFP_KERNEL);
1049 if (!new.ex_pathname)
1051 new.ex_client = clp;
1052 new.ex_path = path;
1053 new.ex_flags = nxp->ex_flags;
1054 new.ex_anon_uid = nxp->ex_anon_uid;
1055 new.ex_anon_gid = nxp->ex_anon_gid;
1056 new.ex_fsid = nxp->ex_dev;
1058 exp = svc_export_lookup(&new);
1060 exp = svc_export_update(&new, exp);
1073 kfree(new.ex_pathname);