coda: switch coda_cnode_make() to sane API as well, clean coda_lookup()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -204,10 +204,12 @@ static int coda_fill_super(struct super_block *sb, void *data, int silent)
|
||||
printk("coda_read_super: rootfid is %s\n", coda_f2s(&fid));
|
||||
|
||||
/* make root inode */
|
||||
error = coda_cnode_make(&root, &fid, sb);
|
||||
if ( error || !root ) {
|
||||
printk("Failure of coda_cnode_make for root: error %d\n", error);
|
||||
goto error;
|
||||
root = coda_cnode_make(&fid, sb);
|
||||
if (IS_ERR(root)) {
|
||||
error = PTR_ERR(root);
|
||||
printk("Failure of coda_cnode_make for root: error %d\n", error);
|
||||
root = NULL;
|
||||
goto error;
|
||||
}
|
||||
|
||||
printk("coda_read_super: rootinode is %ld dev %s\n",
|
||||
|
Reference in New Issue
Block a user