From f9fc4b32dd0367f53846f117d203453780e1ba22 Mon Sep 17 00:00:00 2001 From: Javinator9889 Date: Tue, 22 Dec 2020 15:59:47 +0100 Subject: [PATCH] io_uring: delete old reference to unused struct field --- fs/gfs2/glops.c | 9 --------- fs/io_uring.c | 2 -- 2 files changed, 11 deletions(-) diff --git a/fs/gfs2/glops.c b/fs/gfs2/glops.c index 0391467bef32..3faa421568b0 100644 --- a/fs/gfs2/glops.c +++ b/fs/gfs2/glops.c @@ -251,15 +251,6 @@ static void gfs2_rgrp_go_dump(struct seq_file *seq, struct gfs2_glock *gl, gfs2_rgrp_dump(seq, rgd, fs_id_buf); } -static void gfs2_rgrp_go_dump(struct seq_file *seq, struct gfs2_glock *gl, - const char *fs_id_buf) -{ - struct gfs2_rgrpd *rgd = gl->gl_object; - - if (rgd) - gfs2_rgrp_dump(seq, rgd, fs_id_buf); -} - static struct gfs2_inode *gfs2_glock2inode(struct gfs2_glock *gl) { struct gfs2_inode *ip; diff --git a/fs/io_uring.c b/fs/io_uring.c index 8479d18f4da7..31272e4ad41e 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -6497,8 +6497,6 @@ static int io_init_req(struct io_ring_ctx *ctx, struct io_kiocb *req, /* one is dropped after submission, the other at completion */ refcount_set(&req->refs, 2); req->task = current; - get_task_struct(req->task); - atomic_long_inc(&req->task->io_uring->req_issue); req->result = 0; if (unlikely(req->opcode >= IORING_OP_LAST))