aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc
diff options
context:
space:
mode:
Diffstat (limited to 'net/sunrpc')
-rw-r--r--net/sunrpc/rpc_pipe.c80
1 files changed, 40 insertions, 40 deletions
diff --git a/net/sunrpc/rpc_pipe.c b/net/sunrpc/rpc_pipe.c
index e5f37ded1565..2a4e6eb0a3e9 100644
--- a/net/sunrpc/rpc_pipe.c
+++ b/net/sunrpc/rpc_pipe.c
@@ -398,19 +398,6 @@ static const struct file_operations rpc_info_operations = {
398 398
399 399
400/* 400/*
401 * We have a single directory with 1 node in it.
402 */
403enum {
404 RPCAUTH_lockd,
405 RPCAUTH_mount,
406 RPCAUTH_nfs,
407 RPCAUTH_portmap,
408 RPCAUTH_statd,
409 RPCAUTH_nfsd4_cb,
410 RPCAUTH_RootEOF
411};
412
413/*
414 * Description of fs contents. 401 * Description of fs contents.
415 */ 402 */
416struct rpc_filelist { 403struct rpc_filelist {
@@ -419,33 +406,6 @@ struct rpc_filelist {
419 umode_t mode; 406 umode_t mode;
420}; 407};
421 408
422static const struct rpc_filelist files[] = {
423 [RPCAUTH_lockd] = {
424 .name = "lockd",
425 .mode = S_IFDIR | S_IRUGO | S_IXUGO,
426 },
427 [RPCAUTH_mount] = {
428 .name = "mount",
429 .mode = S_IFDIR | S_IRUGO | S_IXUGO,
430 },
431 [RPCAUTH_nfs] = {
432 .name = "nfs",
433 .mode = S_IFDIR | S_IRUGO | S_IXUGO,
434 },
435 [RPCAUTH_portmap] = {
436 .name = "portmap",
437 .mode = S_IFDIR | S_IRUGO | S_IXUGO,
438 },
439 [RPCAUTH_statd] = {
440 .name = "statd",
441 .mode = S_IFDIR | S_IRUGO | S_IXUGO,
442 },
443 [RPCAUTH_nfsd4_cb] = {
444 .name = "nfsd4_cb",
445 .mode = S_IFDIR | S_IRUGO | S_IXUGO,
446 },
447};
448
449enum { 409enum {
450 RPCAUTH_info, 410 RPCAUTH_info,
451 RPCAUTH_EOF 411 RPCAUTH_EOF
@@ -965,6 +925,46 @@ static struct super_operations s_ops = {
965 925
966#define RPCAUTH_GSSMAGIC 0x67596969 926#define RPCAUTH_GSSMAGIC 0x67596969
967 927
928/*
929 * We have a single directory with 1 node in it.
930 */
931enum {
932 RPCAUTH_lockd,
933 RPCAUTH_mount,
934 RPCAUTH_nfs,
935 RPCAUTH_portmap,
936 RPCAUTH_statd,
937 RPCAUTH_nfsd4_cb,
938 RPCAUTH_RootEOF
939};
940
941static const struct rpc_filelist files[] = {
942 [RPCAUTH_lockd] = {
943 .name = "lockd",
944 .mode = S_IFDIR | S_IRUGO | S_IXUGO,
945 },
946 [RPCAUTH_mount] = {
947 .name = "mount",
948 .mode = S_IFDIR | S_IRUGO | S_IXUGO,
949 },
950 [RPCAUTH_nfs] = {
951 .name = "nfs",
952 .mode = S_IFDIR | S_IRUGO | S_IXUGO,
953 },
954 [RPCAUTH_portmap] = {
955 .name = "portmap",
956 .mode = S_IFDIR | S_IRUGO | S_IXUGO,
957 },
958 [RPCAUTH_statd] = {
959 .name = "statd",
960 .mode = S_IFDIR | S_IRUGO | S_IXUGO,
961 },
962 [RPCAUTH_nfsd4_cb] = {
963 .name = "nfsd4_cb",
964 .mode = S_IFDIR | S_IRUGO | S_IXUGO,
965 },
966};
967
968static int 968static int
969rpc_fill_super(struct super_block *sb, void *data, int silent) 969rpc_fill_super(struct super_block *sb, void *data, int silent)
970{ 970{