--- initial
+++ final
@@ -1,78 +1,78 @@
 int xfs_bulkstat_one_int(struct xfs_mount *mp,          /* mount point for filesystem */
                          xfs_ino_t ino,                 /* inode to get data for */
                          void __user *buffer,           /* buffer to place output in */
                          int ubsize,                    /* size of buffer */
                          bulkstat_one_fmt_pf formatter, /* formatter, copy to user */
                          int *ubused,                   /* bytes used by me */
                          int *stat)                     /* BULKSTAT_RV_... */
 {
   struct xfs_icdinode *dic; /* dinode core info pointer */
   struct xfs_inode *ip;     /* incore inode pointer */
   struct inode *inode;
   struct xfs_bstat *buf; /* return buffer */
   int error = 0;         /* error value */
   *stat = BULKSTAT_RV_NOTHING;
   if (!buffer || xfs_internal_inum(mp, ino)) return -EINVAL;
   buf = kmem_zalloc(sizeof(*buf), KM_SLEEP | KM_MAYFAIL);
   if (!buf) return -ENOMEM;
   error = xfs_iget(mp, NULL, ino, (XFS_IGET_DONTCACHE | XFS_IGET_UNTRUSTED), XFS_ILOCK_SHARED, &ip);
   if (error) goto out_free;
   ASSERT(ip != NULL);
   ASSERT(ip->i_imap.im_blkno != 0);
   inode = VFS_I(ip);
   dic = &ip->i_d;
   /* xfs_iget returns the following without needing
    * further change.
    */
   buf->bs_projid_lo = dic->di_projid_lo;
   buf->bs_projid_hi = dic->di_projid_hi;
   buf->bs_ino = ino;
   buf->bs_uid = dic->di_uid;
   buf->bs_gid = dic->di_gid;
   buf->bs_size = dic->di_size;
   buf->bs_nlink = inode->i_nlink;
   buf->bs_atime.tv_sec = inode->i_atime.tv_sec;
   buf->bs_atime.tv_nsec = inode->i_atime.tv_nsec;
   buf->bs_mtime.tv_sec = inode->i_mtime.tv_sec;
   buf->bs_mtime.tv_nsec = inode->i_mtime.tv_nsec;
   buf->bs_ctime.tv_sec = inode->i_ctime.tv_sec;
   buf->bs_ctime.tv_nsec = inode->i_ctime.tv_nsec;
   buf->bs_gen = inode->i_generation;
   buf->bs_mode = inode->i_mode;
   buf->bs_xflags = xfs_ip2xflags(ip);
   buf->bs_extsize = dic->di_extsize << mp->m_sb.sb_blocklog;
   buf->bs_extents = dic->di_nextents;
   memset(buf->bs_pad, 0, sizeof(buf->bs_pad));
   buf->bs_dmevmask = dic->di_dmevmask;
   buf->bs_dmstate = dic->di_dmstate;
   buf->bs_aextents = dic->di_anextents;
   buf->bs_forkoff = XFS_IFORK_BOFF(ip);
   if (dic->di_version == 3) {
     if (dic->di_flags2 & XFS_DIFLAG2_COWEXTSIZE) buf->bs_cowextsize = dic->di_cowextsize << mp->m_sb.sb_blocklog;
   }
   switch (dic->di_format) {
   case XFS_DINODE_FMT_DEV:
     buf->bs_rdev = sysv_encode_dev(inode->i_rdev);
     buf->bs_blksize = BLKDEV_IOSIZE;
     buf->bs_blocks = 0;
     break;
   case XFS_DINODE_FMT_LOCAL:
     buf->bs_rdev = 0;
     buf->bs_blksize = mp->m_sb.sb_blocksize;
     buf->bs_blocks = 0;
     break;
   case XFS_DINODE_FMT_EXTENTS:
   case XFS_DINODE_FMT_BTREE:
     buf->bs_rdev = 0;
     buf->bs_blksize = mp->m_sb.sb_blocksize;
     buf->bs_blocks = dic->di_nblocks + ip->i_delayed_blks;
     break;
   }
   xfs_iunlock(ip, XFS_ILOCK_SHARED);
-  IRELE(ip);
+  xfs_irele(ip);
   error = formatter(buffer, ubsize, ubused, buf);
   if (!error) *stat = BULKSTAT_RV_DIDONE;
 out_free:
   kmem_free(buf);
   return error;
 }<sep>@@
expression dp;
@@
-               IRELE(dp);
+               xfs_irele(dp);