projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f15a5cf
)
NFSD: Using path_get when assigning path for export
author
Kinglong Mee
<kinglongmee@gmail.com>
Tue, 10 Jun 2014 14:04:43 +0000
(22:04 +0800)
committer
J. Bruce Fields
<bfields@redhat.com>
Mon, 23 Jun 2014 15:31:36 +0000
(11:31 -0400)
Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/export.c
patch
|
blob
|
history
diff --git
a/fs/nfsd/export.c
b/fs/nfsd/export.c
index 13b85f94d9e25e052fed8edf83095950a8b6927e..ef2d9d62ce2bfd6766d760ac8722fe2b59498541 100644
(file)
--- a/
fs/nfsd/export.c
+++ b/
fs/nfsd/export.c
@@
-698,8
+698,8
@@
static void svc_export_init(struct cache_head *cnew, struct cache_head *citem)
kref_get(&item->ex_client->ref);
new->ex_client = item->ex_client;
- new->ex_path
.dentry = dget(item->ex_path.dentry)
;
-
new->ex_path.mnt = mntget(item->ex_path.mnt
);
+ new->ex_path
= item->ex_path
;
+
path_get(&item->ex_path
);
new->ex_fslocs.locations = NULL;
new->ex_fslocs.locations_count = 0;
new->ex_fslocs.migrated = 0;