diff options
Diffstat (limited to 'fs/nfsd/export.c')
-rw-r--r-- | fs/nfsd/export.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/fs/nfsd/export.c b/fs/nfsd/export.c index c487810a2366..872a5ef550c7 100644 --- a/fs/nfsd/export.c +++ b/fs/nfsd/export.c | |||
@@ -12,6 +12,7 @@ | |||
12 | * Copyright (C) 1995, 1996 Olaf Kirch, <okir@monad.swb.de> | 12 | * Copyright (C) 1995, 1996 Olaf Kirch, <okir@monad.swb.de> |
13 | */ | 13 | */ |
14 | 14 | ||
15 | #include <linux/slab.h> | ||
15 | #include <linux/namei.h> | 16 | #include <linux/namei.h> |
16 | #include <linux/module.h> | 17 | #include <linux/module.h> |
17 | #include <linux/exportfs.h> | 18 | #include <linux/exportfs.h> |
@@ -1316,19 +1317,11 @@ rqst_exp_parent(struct svc_rqst *rqstp, struct path *path) | |||
1316 | 1317 | ||
1317 | static struct svc_export *find_fsidzero_export(struct svc_rqst *rqstp) | 1318 | static struct svc_export *find_fsidzero_export(struct svc_rqst *rqstp) |
1318 | { | 1319 | { |
1319 | struct svc_export *exp; | ||
1320 | u32 fsidv[2]; | 1320 | u32 fsidv[2]; |
1321 | 1321 | ||
1322 | mk_fsid(FSID_NUM, fsidv, 0, 0, 0, NULL); | 1322 | mk_fsid(FSID_NUM, fsidv, 0, 0, 0, NULL); |
1323 | 1323 | ||
1324 | exp = rqst_exp_find(rqstp, FSID_NUM, fsidv); | 1324 | return rqst_exp_find(rqstp, FSID_NUM, fsidv); |
1325 | /* | ||
1326 | * We shouldn't have accepting an nfsv4 request at all if we | ||
1327 | * don't have a pseudoexport!: | ||
1328 | */ | ||
1329 | if (IS_ERR(exp) && PTR_ERR(exp) == -ENOENT) | ||
1330 | exp = ERR_PTR(-ESERVERFAULT); | ||
1331 | return exp; | ||
1332 | } | 1325 | } |
1333 | 1326 | ||
1334 | /* | 1327 | /* |