aboutsummaryrefslogtreecommitdiffstats
path: root/fs/coda/cnode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/coda/cnode.c')
-rw-r--r--fs/coda/cnode.c21
1 files changed, 9 insertions, 12 deletions
diff --git a/fs/coda/cnode.c b/fs/coda/cnode.c
index 6475877b0763..8af67c9c47dd 100644
--- a/fs/coda/cnode.c
+++ b/fs/coda/cnode.c
@@ -156,19 +156,16 @@ struct inode *coda_fid_to_inode(struct CodaFid *fid, struct super_block *sb)
156} 156}
157 157
158/* the CONTROL inode is made without asking attributes from Venus */ 158/* the CONTROL inode is made without asking attributes from Venus */
159int coda_cnode_makectl(struct inode **inode, struct super_block *sb) 159struct inode *coda_cnode_makectl(struct super_block *sb)
160{ 160{
161 int error = -ENOMEM; 161 struct inode *inode = new_inode(sb);
162 162 if (inode) {
163 *inode = new_inode(sb); 163 inode->i_ino = CTL_INO;
164 if (*inode) { 164 inode->i_op = &coda_ioctl_inode_operations;
165 (*inode)->i_ino = CTL_INO; 165 inode->i_fop = &coda_ioctl_operations;
166 (*inode)->i_op = &coda_ioctl_inode_operations; 166 inode->i_mode = 0444;
167 (*inode)->i_fop = &coda_ioctl_operations; 167 return inode;
168 (*inode)->i_mode = 0444;
169 error = 0;
170 } 168 }
171 169 return ERR_PTR(-ENOMEM);
172 return error;
173} 170}
174 171