X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Fgfs2%2Fops_export.c;h=9cda8536530cb04d40a3a1e85ccc128c1f3baba1;hb=aefcc28a3a63ac33a298777aa50ba43641c75241;hp=334c7f85351bcd5397c7749aa009d56ed4e6608b;hpb=0b61a2ba5dfd1620731e717d686e6ade657fd975;p=linux-2.6 diff --git a/fs/gfs2/ops_export.c b/fs/gfs2/ops_export.c index 334c7f8535..9cda853653 100644 --- a/fs/gfs2/ops_export.c +++ b/fs/gfs2/ops_export.c @@ -134,7 +134,7 @@ static struct dentry *gfs2_get_parent(struct dentry *child) struct dentry *dentry; gfs2_str2qstr(&dotdot, ".."); - inode = gfs2_lookupi(child->d_inode, &dotdot, 1, NULL); + inode = gfs2_lookupi(child->d_inode, &dotdot, 1); if (!inode) return ERR_PTR(-ENOENT); @@ -204,8 +204,6 @@ static struct dentry *gfs2_get_dentry(struct super_block *sb, inode = gfs2_inode_lookup(sb, DT_UNKNOWN, inum->no_addr, 0, 0); - if (!inode) - goto fail; if (IS_ERR(inode)) { error = PTR_ERR(inode); goto fail;