No functional changes in this patch, just a prep patch for needing the
request in io_file_put().
Signed-off-by: Jens Axboe <axboe@kernel.dk>
                io_put_kbuf_comp(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);
+               io_put_file(req);
 
                rsrc_node = req->rsrc_node;
                /*
                        if (unlikely(req->flags & IO_REQ_CLEAN_FLAGS))
                                io_clean_op(req);
                }
-               if (!(req->flags & REQ_F_FIXED_FILE))
-                       io_put_file(req->file);
+               io_put_file(req);
 
                io_req_put_rsrc_locked(req, ctx);
 
 
        return req->flags & REQ_F_ASYNC_DATA;
 }
 
-static inline void io_put_file(struct file *file)
+static inline void io_put_file(struct io_kiocb *req)
 {
-       if (file)
-               fput(file);
+       if (!(req->flags & REQ_F_FIXED_FILE) && req->file)
+               fput(req->file);
 }
 
 static inline void io_ring_submit_unlock(struct io_ring_ctx *ctx,