aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfs/inode.c')
-rw-r--r--fs/nfs/inode.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c
index 60aac58270a8..2f7656b911b6 100644
--- a/fs/nfs/inode.c
+++ b/fs/nfs/inode.c
@@ -107,7 +107,7 @@ static struct rpc_version * nfs_version[] = {
107static struct rpc_program nfs_program = { 107static struct rpc_program nfs_program = {
108 .name = "nfs", 108 .name = "nfs",
109 .number = NFS_PROGRAM, 109 .number = NFS_PROGRAM,
110 .nrvers = sizeof(nfs_version) / sizeof(nfs_version[0]), 110 .nrvers = ARRAY_SIZE(nfs_version),
111 .version = nfs_version, 111 .version = nfs_version,
112 .stats = &nfs_rpcstat, 112 .stats = &nfs_rpcstat,
113 .pipe_dir_name = "/nfs", 113 .pipe_dir_name = "/nfs",
@@ -122,7 +122,7 @@ static struct rpc_version * nfsacl_version[] = {
122struct rpc_program nfsacl_program = { 122struct rpc_program nfsacl_program = {
123 .name = "nfsacl", 123 .name = "nfsacl",
124 .number = NFS_ACL_PROGRAM, 124 .number = NFS_ACL_PROGRAM,
125 .nrvers = sizeof(nfsacl_version) / sizeof(nfsacl_version[0]), 125 .nrvers = ARRAY_SIZE(nfsacl_version),
126 .version = nfsacl_version, 126 .version = nfsacl_version,
127 .stats = &nfsacl_rpcstat, 127 .stats = &nfsacl_rpcstat,
128}; 128};
@@ -1786,7 +1786,7 @@ static struct super_block *nfs_get_sb(struct file_system_type *fs_type,
1786 1786
1787 s->s_flags = flags; 1787 s->s_flags = flags;
1788 1788
1789 error = nfs_fill_super(s, data, flags & MS_VERBOSE ? 1 : 0); 1789 error = nfs_fill_super(s, data, flags & MS_SILENT ? 1 : 0);
1790 if (error) { 1790 if (error) {
1791 up_write(&s->s_umount); 1791 up_write(&s->s_umount);
1792 deactivate_super(s); 1792 deactivate_super(s);
@@ -2107,7 +2107,7 @@ static struct super_block *nfs4_get_sb(struct file_system_type *fs_type,
2107 2107
2108 s->s_flags = flags; 2108 s->s_flags = flags;
2109 2109
2110 error = nfs4_fill_super(s, data, flags & MS_VERBOSE ? 1 : 0); 2110 error = nfs4_fill_super(s, data, flags & MS_SILENT ? 1 : 0);
2111 if (error) { 2111 if (error) {
2112 up_write(&s->s_umount); 2112 up_write(&s->s_umount);
2113 deactivate_super(s); 2113 deactivate_super(s);
@@ -2276,7 +2276,8 @@ static int nfs_init_inodecache(void)
2276{ 2276{
2277 nfs_inode_cachep = kmem_cache_create("nfs_inode_cache", 2277 nfs_inode_cachep = kmem_cache_create("nfs_inode_cache",
2278 sizeof(struct nfs_inode), 2278 sizeof(struct nfs_inode),
2279 0, SLAB_RECLAIM_ACCOUNT, 2279 0, (SLAB_RECLAIM_ACCOUNT|
2280 SLAB_MEM_SPREAD),
2280 init_once, NULL); 2281 init_once, NULL);
2281 if (nfs_inode_cachep == NULL) 2282 if (nfs_inode_cachep == NULL)
2282 return -ENOMEM; 2283 return -ENOMEM;