aboutsummaryrefslogtreecommitdiffstats
path: root/fs/coda/inode.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2012-01-10 11:11:49 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2012-01-10 11:13:16 -0500
commitf4947fbce208990266920d51837e4e7ba9779db1 (patch)
treea541edc5de897ce03f54d83c1a1c8147ce22b605 /fs/coda/inode.c
parent0b2c4e39c014219ef73f05ab580c284bf8e6af0a (diff)
coda: switch coda_cnode_make() to sane API as well, clean coda_lookup()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/coda/inode.c')
-rw-r--r--fs/coda/inode.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/fs/coda/inode.c b/fs/coda/inode.c
index 1c08a8cd673a..5e2e1b3f068d 100644
--- a/fs/coda/inode.c
+++ b/fs/coda/inode.c
@@ -204,10 +204,12 @@ static int coda_fill_super(struct super_block *sb, void *data, int silent)
204 printk("coda_read_super: rootfid is %s\n", coda_f2s(&fid)); 204 printk("coda_read_super: rootfid is %s\n", coda_f2s(&fid));
205 205
206 /* make root inode */ 206 /* make root inode */
207 error = coda_cnode_make(&root, &fid, sb); 207 root = coda_cnode_make(&fid, sb);
208 if ( error || !root ) { 208 if (IS_ERR(root)) {
209 printk("Failure of coda_cnode_make for root: error %d\n", error); 209 error = PTR_ERR(root);
210 goto error; 210 printk("Failure of coda_cnode_make for root: error %d\n", error);
211 root = NULL;
212 goto error;
211 } 213 }
212 214
213 printk("coda_read_super: rootinode is %ld dev %s\n", 215 printk("coda_read_super: rootinode is %ld dev %s\n",