Skip to content

Commit 2f1ddda

Browse files
Trond MyklebustJ. Bruce Fields
authored andcommitted
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>
1 parent ed748aa commit 2f1ddda

2 files changed

Lines changed: 0 additions & 12 deletions

File tree

‎fs/nfsd/export.c‎

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,6 @@ static void svc_export_put(struct kref *ref)
317317
struct svc_export *exp = container_of(ref, struct svc_export, h.ref);
318318
path_put(&exp->ex_path);
319319
auth_domain_put(exp->ex_client);
320-
kfree(exp->ex_pathname);
321320
nfsd4_fslocs_free(&exp->ex_fslocs);
322321
kfree(exp);
323322
}
@@ -527,11 +526,6 @@ static int svc_export_parse(struct cache_detail *cd, char *mesg, int mlen)
527526

528527
exp.ex_client = dom;
529528

530-
err = -ENOMEM;
531-
exp.ex_pathname = kstrdup(buf, GFP_KERNEL);
532-
if (!exp.ex_pathname)
533-
goto out2;
534-
535529
/* expiry */
536530
err = -EINVAL;
537531
exp.h.expiry_time = get_expiry(&mesg);
@@ -612,8 +606,6 @@ static int svc_export_parse(struct cache_detail *cd, char *mesg, int mlen)
612606
nfsd4_fslocs_free(&exp.ex_fslocs);
613607
kfree(exp.ex_uuid);
614608
out3:
615-
kfree(exp.ex_pathname);
616-
out2:
617609
path_put(&exp.ex_path);
618610
out1:
619611
auth_domain_put(dom);
@@ -677,7 +669,6 @@ static void svc_export_init(struct cache_head *cnew, struct cache_head *citem)
677669
new->ex_client = item->ex_client;
678670
new->ex_path.dentry = dget(item->ex_path.dentry);
679671
new->ex_path.mnt = mntget(item->ex_path.mnt);
680-
new->ex_pathname = NULL;
681672
new->ex_fslocs.locations = NULL;
682673
new->ex_fslocs.locations_count = 0;
683674
new->ex_fslocs.migrated = 0;
@@ -695,8 +686,6 @@ static void export_update(struct cache_head *cnew, struct cache_head *citem)
695686
new->ex_fsid = item->ex_fsid;
696687
new->ex_uuid = item->ex_uuid;
697688
item->ex_uuid = NULL;
698-
new->ex_pathname = item->ex_pathname;
699-
item->ex_pathname = NULL;
700689
new->ex_fslocs.locations = item->ex_fslocs.locations;
701690
item->ex_fslocs.locations = NULL;
702691
new->ex_fslocs.locations_count = item->ex_fslocs.locations_count;

‎include/linux/nfsd/export.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ struct svc_export {
9696
struct auth_domain * ex_client;
9797
int ex_flags;
9898
struct path ex_path;
99-
char *ex_pathname;
10099
uid_t ex_anon_uid;
101100
gid_t ex_anon_gid;
102101
int ex_fsid;

0 commit comments

Comments
 (0)