Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

NFSD: Remove the ex_pathname field from struct svc_export

There are no more users...

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>

authored by

Trond Myklebust and committed by
J. Bruce Fields
2f1ddda1 ed748aac

-12
-11
fs/nfsd/export.c
··· 317 317 struct svc_export *exp = container_of(ref, struct svc_export, h.ref); 318 318 path_put(&exp->ex_path); 319 319 auth_domain_put(exp->ex_client); 320 - kfree(exp->ex_pathname); 321 320 nfsd4_fslocs_free(&exp->ex_fslocs); 322 321 kfree(exp); 323 322 } ··· 526 527 527 528 exp.ex_client = dom; 528 529 529 - err = -ENOMEM; 530 - exp.ex_pathname = kstrdup(buf, GFP_KERNEL); 531 - if (!exp.ex_pathname) 532 - goto out2; 533 - 534 530 /* expiry */ 535 531 err = -EINVAL; 536 532 exp.h.expiry_time = get_expiry(&mesg); ··· 606 612 nfsd4_fslocs_free(&exp.ex_fslocs); 607 613 kfree(exp.ex_uuid); 608 614 out3: 609 - kfree(exp.ex_pathname); 610 - out2: 611 615 path_put(&exp.ex_path); 612 616 out1: 613 617 auth_domain_put(dom); ··· 669 677 new->ex_client = item->ex_client; 670 678 new->ex_path.dentry = dget(item->ex_path.dentry); 671 679 new->ex_path.mnt = mntget(item->ex_path.mnt); 672 - new->ex_pathname = NULL; 673 680 new->ex_fslocs.locations = NULL; 674 681 new->ex_fslocs.locations_count = 0; 675 682 new->ex_fslocs.migrated = 0; ··· 686 695 new->ex_fsid = item->ex_fsid; 687 696 new->ex_uuid = item->ex_uuid; 688 697 item->ex_uuid = NULL; 689 - new->ex_pathname = item->ex_pathname; 690 - item->ex_pathname = NULL; 691 698 new->ex_fslocs.locations = item->ex_fslocs.locations; 692 699 item->ex_fslocs.locations = NULL; 693 700 new->ex_fslocs.locations_count = item->ex_fslocs.locations_count;
-1
include/linux/nfsd/export.h
··· 96 96 struct auth_domain * ex_client; 97 97 int ex_flags; 98 98 struct path ex_path; 99 - char *ex_pathname; 100 99 uid_t ex_anon_uid; 101 100 gid_t ex_anon_gid; 102 101 int ex_fsid;