struct task_struct *task,
                                         bool cancel_all);
 
-static void io_dismantle_req(struct io_kiocb *req);
 static void io_clean_op(struct io_kiocb *req);
 static void io_queue_sqe(struct io_kiocb *req);
 static void io_move_task_work_from_local(struct io_ring_ctx *ctx);
                        }
                }
                io_put_kbuf_comp(req);
-               io_dismantle_req(req);
+               if (unlikely(req->flags & IO_REQ_CLEAN_FLAGS))
+                       io_clean_op(req);
+               if (!(req->flags & REQ_F_FIXED_FILE))
+                       io_put_file(req->file);
+
                rsrc_node = req->rsrc_node;
                /*
                 * Selected buffer deallocation in io_clean_op() assumes that
        return true;
 }
 
-static inline void io_dismantle_req(struct io_kiocb *req)
-{
-       unsigned int flags = req->flags;
-
-       if (unlikely(flags & IO_REQ_CLEAN_FLAGS))
-               io_clean_op(req);
-       if (!(flags & REQ_F_FIXED_FILE))
-               io_put_file(req->file);
-}
-
 __cold void io_free_req(struct io_kiocb *req)
 {
        /* refs were already put, restore them for io_req_task_complete() */