|
@@ -11,7 +11,6 @@
|
|
|
#include <linux/module.h>
|
|
#include <linux/module.h>
|
|
|
#include <linux/fs_struct.h>
|
|
#include <linux/fs_struct.h>
|
|
|
#include <linux/swap.h>
|
|
#include <linux/swap.h>
|
|
|
-#include <linux/nsproxy.h>
|
|
|
|
|
|
|
|
|
|
#include <linux/sunrpc/stats.h>
|
|
#include <linux/sunrpc/stats.h>
|
|
|
#include <linux/sunrpc/svcsock.h>
|
|
#include <linux/sunrpc/svcsock.h>
|
|
@@ -341,7 +340,7 @@ static int nfsd_get_default_max_blksize(void)
|
|
|
int nfsd_create_serv(void)
|
|
int nfsd_create_serv(void)
|
|
|
{
|
|
{
|
|
|
int error;
|
|
int error;
|
|
|
- struct net *net = current->nsproxy->net_ns;
|
|
|
|
|
|
|
+ struct net *net = &init_net;
|
|
|
|
|
|
|
|
WARN_ON(!mutex_is_locked(&nfsd_mutex));
|
|
WARN_ON(!mutex_is_locked(&nfsd_mutex));
|
|
|
if (nfsd_serv) {
|
|
if (nfsd_serv) {
|