return 0;
 }
 
-static int trunc_start(struct gfs2_inode *ip, uint64_t size,
-                      gfs2_truncator_t truncator)
+static int trunc_start(struct gfs2_inode *ip, uint64_t size)
 {
        struct gfs2_sbd *sdp = ip->i_sbd;
        struct buffer_head *dibh;
                        if (do_div(junk, sdp->sd_jbsize))
                                error = truncator_journaled(ip, size);
                } else if (size & (uint64_t)(sdp->sd_sb.sb_bsize - 1))
-                       error = truncator(ip, size);
+                       error = gfs2_truncator_page(ip, size);
 
                if (!error) {
                        ip->i_di.di_size = size;
  * Returns: errno
  */
 
-static int do_shrink(struct gfs2_inode *ip, uint64_t size,
-                    gfs2_truncator_t truncator)
+static int do_shrink(struct gfs2_inode *ip, uint64_t size)
 {
        int error;
 
-       error = trunc_start(ip, size, truncator);
+       error = trunc_start(ip, size);
        if (error < 0)
                return error;
        if (error > 0)
  * Returns: errno
  */
 
-int gfs2_truncatei(struct gfs2_inode *ip, uint64_t size,
-                  gfs2_truncator_t truncator)
+int gfs2_truncatei(struct gfs2_inode *ip, uint64_t size)
 {
        int error;
 
        if (size > ip->i_di.di_size)
                error = do_grow(ip, size);
        else
-               error = do_shrink(ip, size, truncator);
+               error = do_shrink(ip, size);
 
        return error;
 }
 
                   uint64_t *dblock, uint32_t *extlen);
 
 typedef int (*gfs2_truncator_t) (struct gfs2_inode * ip, uint64_t size);
-int gfs2_truncatei(struct gfs2_inode *ip, uint64_t size,
-                  gfs2_truncator_t truncator);
+int gfs2_truncatei(struct gfs2_inode *ip, uint64_t size);
 int gfs2_truncatei_resume(struct gfs2_inode *ip);
 int gfs2_file_dealloc(struct gfs2_inode *ip);