diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2009-08-09 15:14:21 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2009-08-09 15:14:21 -0400 |
commit | bb1567491e43df4113ec8b088ff0ebc22f568bc5 (patch) | |
tree | f60769d150bbbd42afa97be7af65636d6eea8875 /net/sunrpc/rpc_pipe.c | |
parent | ac6fecee3121a6825a01c8fda2f5cbf1ad6a3ebd (diff) |
SUNRPC: rpc_pipefs cleanup
Move the files[] array closer to rpc_fill_super()
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net/sunrpc/rpc_pipe.c')
-rw-r--r-- | net/sunrpc/rpc_pipe.c | 80 |
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 | */ | ||
403 | enum { | ||
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 | */ |
416 | struct rpc_filelist { | 403 | struct rpc_filelist { |
@@ -419,33 +406,6 @@ struct rpc_filelist { | |||
419 | umode_t mode; | 406 | umode_t mode; |
420 | }; | 407 | }; |
421 | 408 | ||
422 | static 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 | |||
449 | enum { | 409 | enum { |
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 | */ | ||
931 | enum { | ||
932 | RPCAUTH_lockd, | ||
933 | RPCAUTH_mount, | ||
934 | RPCAUTH_nfs, | ||
935 | RPCAUTH_portmap, | ||
936 | RPCAUTH_statd, | ||
937 | RPCAUTH_nfsd4_cb, | ||
938 | RPCAUTH_RootEOF | ||
939 | }; | ||
940 | |||
941 | static 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 | |||
968 | static int | 968 | static int |
969 | rpc_fill_super(struct super_block *sb, void *data, int silent) | 969 | rpc_fill_super(struct super_block *sb, void *data, int silent) |
970 | { | 970 | { |