Skip to content

Commit 0da22a9

Browse files
kinglongmeeJ. Bruce Fields
authored andcommitted
NFSD: Using path_get when assigning path for export
Signed-off-by: Kinglong Mee <[email protected]> Signed-off-by: J. Bruce Fields <[email protected]>
1 parent f15a5cf commit 0da22a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/nfsd/export.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -698,8 +698,8 @@ static void svc_export_init(struct cache_head *cnew, struct cache_head *citem)
698698

699699
kref_get(&item->ex_client->ref);
700700
new->ex_client = item->ex_client;
701-
new->ex_path.dentry = dget(item->ex_path.dentry);
702-
new->ex_path.mnt = mntget(item->ex_path.mnt);
701+
new->ex_path = item->ex_path;
702+
path_get(&item->ex_path);
703703
new->ex_fslocs.locations = NULL;
704704
new->ex_fslocs.locations_count = 0;
705705
new->ex_fslocs.migrated = 0;

0 commit comments

Comments
 (0)