nfsd: make export cache allocated per network namespace context
This patch also changes prototypes of nfsd_export_flush() and exp_rootfh(): network namespace parameter added. Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
This commit is contained in:

committed by
J. Bruce Fields

parent
2a75cfa64e
commit
b3853e0ea1
@@ -354,7 +354,7 @@ static ssize_t write_filehandle(struct file *file, char *buf, size_t size)
|
||||
if (!dom)
|
||||
return -ENOMEM;
|
||||
|
||||
len = exp_rootfh(dom, path, &fh, maxsize);
|
||||
len = exp_rootfh(&init_net, dom, path, &fh, maxsize);
|
||||
auth_domain_put(dom);
|
||||
if (len)
|
||||
return len;
|
||||
|
Reference in New Issue
Block a user