Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp989895ybh; Tue, 10 Mar 2020 12:15:15 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuAJhJKUiQNzZNDxdxrpzb0Szbo6AHLiP1jWvgzfLCJY7bxnpv3D3itxD+DhVesF0LbX9M5 X-Received: by 2002:a05:6830:1d7:: with SMTP id r23mr17899381ota.181.1583867715358; Tue, 10 Mar 2020 12:15:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583867715; cv=none; d=google.com; s=arc-20160816; b=xfqPPuCJj4q43ElTMsXqH8j58iXdgp18UxEmnIsQua2kUPcS3C9h0oTodDU+Pl8URs ddJPfPvGanPxXm6RmG8y9iZE2oDs9VN93O6xb1+C05AWn0/KxDuByYade+yWf57tJIig 8dl8U5J4yDhZZNKq0dWHYIuJ6P06KTBIgsJAbF/wDt3atvQ3ZtvTcHQP6OL9sFv6L43x bEYVxrHOSlIWostoqI5nK4L3zWvuaCZHLxU1UUHlGWeyC/CJRhlc0Da4R/zxW4xGO4W8 1fwo2Mfn9IbGMXqC+VyOTEu0RHXboglPaUr8iGbSQ1vyj1k5p+HWjZOb0DyWUjfc3xvO Qi4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=jXS+fddiboogW4J/E0/NXpTN0n1JtPDhmBZ3qFcCQP4=; b=eauU22RomjpXIR1FXVKu7qq6hfcJfzcIkdsncAAJYd5uheYGWHwH/Lo2j2or95cFoL 7P/rDpu8dGwfvWU4dgtxOZJyG9aGc8qyzrqdgZlTfW2767gnNprlFOUp0rfqfHmiCIKH 3aRXm4xH+ErlxDUIMBYX+/oAj+RH7nq00v3b/KVM1tXQzZr2ASo3NKnyPlxdurebm7VK FnWMGf4r46pLB9ZeXAk6wTrOdgV94XzI/fRSYHawr1gVuhDuCXC3kskNPUVRzq19EiPW +8TuL+finHcuNkA4KlBGQuHa6M8y9lI0VgLP9FvZujUvtBflHW53h6QAdLXS5qX0iuP6 fRrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="chA/wqnM"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r1si1610130oti.200.2020.03.10.12.15.02; Tue, 10 Mar 2020 12:15:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="chA/wqnM"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727211AbgCJTOQ (ORCPT + 99 others); Tue, 10 Mar 2020 15:14:16 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:42317 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726497AbgCJTOQ (ORCPT ); Tue, 10 Mar 2020 15:14:16 -0400 Received: by mail-pf1-f194.google.com with SMTP id f5so6936547pfk.9 for ; Tue, 10 Mar 2020 12:14:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=jXS+fddiboogW4J/E0/NXpTN0n1JtPDhmBZ3qFcCQP4=; b=chA/wqnMnfNRRpErVjOWwHfwqEReVmuaVJ1j+gJ786KskrXv1xxlMHWhSZ81FrPINb t7VRbkrSkhXP6B2AaNJjhiJwM2hcw8iC5vC15rnPmbKeluQ9W+ctzvfjLc8K9LQZM3XL U0xJCK4FrImSkd/bNujq2E/EqANq5jI44q7b434QSRqv+yT6EY0hBWqFGnzsFhfzfaEX vRhUSmSQpQZzlrGJtoXcF4+YLOlbZIBrxiw9vXyFDuc1hz42F1yAfIPOzTJTq7Ywtbhs 01HAt7Ibzbj1v8/pSyh5SOldubP6Wr/hSF38V63VzmxAdrNUhTMhLqi3c/aa3U5K0xz4 09fQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=jXS+fddiboogW4J/E0/NXpTN0n1JtPDhmBZ3qFcCQP4=; b=BdmwS6DdpXFZbtu6hBvykU+lcL0Cshes3/gqpMgqgNOMAIj4Hj8mrCXdAkb2o8Dkwa 20FTt1lN45TYNiXWpHB0UVfq8EpEVM+Ldf62GvSPobGIvX4I6cI8baxYJEoBLo+SHnU1 4cNM+dY/yNuRXY6Ncf7sJuoVdWKkpbX3EcwvVQ4G+OTBXuTA3lxFxR/+LPmw+DJAeHTp OSUs05SsLOBFSTAcSyNAk8XVx2Kk5QpepkQpkSkrvPCjSK6Yd+x0d9RUZq3+CS8Qnwwy gDsSH5XJM89KK/f7RitGOYIBpxg1TMg0um6Xle+w1RYfECA5vtVZULL3X8QkLTwekTsV XckQ== X-Gm-Message-State: ANhLgQ1uyPnOSUHX5r6kkNF6FE3c8wEq14EUS5p4rJFtsLABGJ1ymFqZ L34Waobl1UWQKKZ9Ygi/wIY= X-Received: by 2002:aa7:8513:: with SMTP id v19mr22471763pfn.222.1583867655422; Tue, 10 Mar 2020 12:14:15 -0700 (PDT) Received: from localhost.localdomain ([157.45.34.130]) by smtp.gmail.com with ESMTPSA id p9sm2232630pgs.50.2020.03.10.12.14.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 10 Mar 2020 12:14:14 -0700 (PDT) From: Souptick Joarder To: akpm@linux-foundation.org Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Souptick Joarder Subject: [PATCH] mm/filemap.c: Remove unused argument from shrink_readahead_size_eio() Date: Wed, 11 Mar 2020 00:51:33 +0530 Message-Id: <1583868093-24342-1-git-send-email-jrdr.linux@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The first argument of shrink_readahead_size_eio() is not used. Hence removed from function definition and from all the callers. Signed-off-by: Souptick Joarder --- mm/filemap.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/mm/filemap.c b/mm/filemap.c index 1784478..98f3703 100644 --- a/mm/filemap.c +++ b/mm/filemap.c @@ -1962,8 +1962,7 @@ unsigned find_get_pages_range_tag(struct address_space *mapping, pgoff_t *index, * * It is going insane. Fix it by quickly scaling down the readahead size. */ -static void shrink_readahead_size_eio(struct file *filp, - struct file_ra_state *ra) +static void shrink_readahead_size_eio(struct file_ra_state *ra) { ra->ra_pages /= 4; } @@ -2188,7 +2187,7 @@ static ssize_t generic_file_buffered_read(struct kiocb *iocb, goto find_page; } unlock_page(page); - shrink_readahead_size_eio(filp, ra); + shrink_readahead_size_eio(ra); error = -EIO; goto readpage_error; } @@ -2560,7 +2559,7 @@ vm_fault_t filemap_fault(struct vm_fault *vmf) goto retry_find; /* Things didn't work out. Return zero to tell the mm layer so. */ - shrink_readahead_size_eio(file, ra); + shrink_readahead_size_eio(ra); return VM_FAULT_SIGBUS; out_retry: -- 1.9.1