> +/* Return the imap, dinode pointer, and buffer for an inode. */ > +STATIC int > +xfs_iunlink_map_ino( > + struct xfs_trans *tp, > + xfs_ino_t next_ino, > + struct xfs_imap *imap, > + struct xfs_dinode **dipp, > + struct xfs_buf **bpp) > +{ > + struct xfs_mount *mp = tp->t_mountp; > + int error; > + > + imap->im_blkno = 0; > + error = xfs_imap(mp, tp, next_ino, imap, 0); Looking at the next patch it actually would be nicer if we'd pass agno/agino instead of the inode number to this function, as currently both callers need to duplicate the caculation of the ino. In fact the first thing xfs_imap does is to split the ino into agno and agino again, so maybe we should throw in a prep patch to change the xfs_imap calling convention as well.