|
32 | 32 | #include <linux/writeback.h> |
33 | 33 | #include <linux/security.h> |
34 | 34 |
|
35 | | -#ifdef CONFIG_NFSD_V3 |
36 | 35 | #include "xdr3.h" |
37 | | -#endif /* CONFIG_NFSD_V3 */ |
38 | 36 |
|
39 | 37 | #ifdef CONFIG_NFSD_V4 |
40 | 38 | #include "../internal.h" |
@@ -608,7 +606,6 @@ __be32 nfsd4_vfs_fallocate(struct svc_rqst *rqstp, struct svc_fh *fhp, |
608 | 606 | } |
609 | 607 | #endif /* defined(CONFIG_NFSD_V4) */ |
610 | 608 |
|
611 | | -#ifdef CONFIG_NFSD_V3 |
612 | 609 | /* |
613 | 610 | * Check server access rights to a file system object |
614 | 611 | */ |
@@ -720,7 +717,6 @@ nfsd_access(struct svc_rqst *rqstp, struct svc_fh *fhp, u32 *access, u32 *suppor |
720 | 717 | out: |
721 | 718 | return error; |
722 | 719 | } |
723 | | -#endif /* CONFIG_NFSD_V3 */ |
724 | 720 |
|
725 | 721 | int nfsd_open_break_lease(struct inode *inode, int access) |
726 | 722 | { |
@@ -1113,7 +1109,6 @@ nfsd_write(struct svc_rqst *rqstp, struct svc_fh *fhp, loff_t offset, |
1113 | 1109 | return err; |
1114 | 1110 | } |
1115 | 1111 |
|
1116 | | -#ifdef CONFIG_NFSD_V3 |
1117 | 1112 | /** |
1118 | 1113 | * nfsd_commit - Commit pending writes to stable storage |
1119 | 1114 | * @rqstp: RPC request being processed |
@@ -1190,7 +1185,6 @@ nfsd_commit(struct svc_rqst *rqstp, struct svc_fh *fhp, u64 offset, |
1190 | 1185 | out: |
1191 | 1186 | return err; |
1192 | 1187 | } |
1193 | | -#endif /* CONFIG_NFSD_V3 */ |
1194 | 1188 |
|
1195 | 1189 | static __be32 |
1196 | 1190 | nfsd_create_setattr(struct svc_rqst *rqstp, struct svc_fh *resfhp, |
@@ -1380,8 +1374,6 @@ nfsd_create(struct svc_rqst *rqstp, struct svc_fh *fhp, |
1380 | 1374 | rdev, resfhp); |
1381 | 1375 | } |
1382 | 1376 |
|
1383 | | -#ifdef CONFIG_NFSD_V3 |
1384 | | - |
1385 | 1377 | /* |
1386 | 1378 | * NFSv3 and NFSv4 version of nfsd_create |
1387 | 1379 | */ |
@@ -1547,7 +1539,6 @@ do_nfsd_create(struct svc_rqst *rqstp, struct svc_fh *fhp, |
1547 | 1539 | err = nfserrno(host_err); |
1548 | 1540 | goto out; |
1549 | 1541 | } |
1550 | | -#endif /* CONFIG_NFSD_V3 */ |
1551 | 1542 |
|
1552 | 1543 | /* |
1553 | 1544 | * Read a symlink. On entry, *lenp must contain the maximum path length that |
|
0 commit comments