extern int libxfs_iget(struct xfs_mount *, struct xfs_trans *, xfs_ino_t,
uint, struct xfs_inode **,
struct xfs_ifork_ops *);
-extern void libxfs_iput(struct xfs_inode *);
-
-#define IRELE(ip) libxfs_iput(ip)
+extern void libxfs_irele(struct xfs_inode *ip);
#endif /* __XFS_INODE_H__ */
if (error)
fail(_("Space preallocation failed."), error);
rsvfile(mp, ip, llen);
- IRELE(ip);
+ libxfs_irele(ip);
return;
case IF_BLOCK:
break;
parseproto(mp, ip, fsxp, pp, name);
}
- IRELE(ip);
+ libxfs_irele(ip);
return;
default:
ASSERT(0);
fail(_("Error encountered creating file from prototype file"),
error);
}
- IRELE(ip);
+ libxfs_irele(ip);
}
void
_("allocation of the realtime bitmap failed, error = %d\n"),
error);
}
- IRELE(ip);
+ libxfs_irele(ip);
}
static int
error = -libxfs_trans_commit(tp);
if (error)
do_error(_("%s: commit failed, error %d\n"), __func__, error);
- IRELE(ip);
+ libxfs_irele(ip);
return(0);
}
do_warn(
_("can't access block %" PRIu64 " (fsbno %" PRIu64 ") of realtime summary inode %" PRIu64 "\n"),
bno, map.br_startblock, mp->m_sb.sb_rsumino);
- IRELE(ip);
+ libxfs_irele(ip);
return(1);
}
error = -libxfs_trans_commit(tp);
if (error)
do_error(_("%s: commit failed, error %d\n"), __func__, error);
- IRELE(ip);
+ libxfs_irele(ip);
return(0);
}
_("allocation of the realtime summary ino failed, error = %d\n"),
error);
}
- IRELE(ip);
+ libxfs_irele(ip);
}
/*
if (error)
do_error(_("%s: commit failed, error %d\n"), __func__, error);
- IRELE(ip);
+ libxfs_irele(ip);
irec = find_inode_rec(mp, XFS_INO_TO_AGNO(mp, mp->m_sb.sb_rootino),
XFS_INO_TO_AGINO(mp, mp->m_sb.sb_rootino));
do_error(_("%s directory creation failed -- bmapf error %d\n"),
ORPHANAGE, error);
}
- IRELE(ip);
- IRELE(pip);
+ libxfs_irele(ip);
+ libxfs_irele(pip);
add_inode_reached(irec,ino_offset);
return(ino);
do_error(
_("orphanage name create failed (%d)\n"), err);
}
- IRELE(ino_p);
- IRELE(orphanage_ip);
+ libxfs_irele(ino_p);
+ libxfs_irele(orphanage_ip);
}
static int
_("root inode \".\" entry recreation failed (%d)\n"), error);
}
}
- IRELE(ip);
+ libxfs_irele(ip);
}
/*