Merge tag 's390-6.8-2' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux
[linux-block.git] / io_uring / filetable.c
index e7d749991de4267e8d1771b20a1e8d9cbe5c31c6..6e86e6188dbeebf9672cc55cb0261337bc2902c2 100644 (file)
@@ -87,13 +87,10 @@ static int io_install_fixed_file(struct io_ring_ctx *ctx, struct file *file,
                io_file_bitmap_clear(&ctx->file_table, slot_index);
        }
 
-       ret = io_scm_file_account(ctx, file);
-       if (!ret) {
-               *io_get_tag_slot(ctx->file_data, slot_index) = 0;
-               io_fixed_file_set(file_slot, file);
-               io_file_bitmap_set(&ctx->file_table, slot_index);
-       }
-       return ret;
+       *io_get_tag_slot(ctx->file_data, slot_index) = 0;
+       io_fixed_file_set(file_slot, file);
+       io_file_bitmap_set(&ctx->file_table, slot_index);
+       return 0;
 }
 
 int __io_fixed_fd_install(struct io_ring_ctx *ctx, struct file *file,