Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp21745120ybl; Mon, 6 Jan 2020 10:20:45 -0800 (PST) X-Google-Smtp-Source: APXvYqzn2yMJA0h5HrIc6W07r88bb2p/yWWvzbVG8j/k9Wb9k7VoVs7IVdPpAtrYHKnf6o4D+6xP X-Received: by 2002:a05:6830:1f8e:: with SMTP id v14mr7621056otr.65.1578334845561; Mon, 06 Jan 2020 10:20:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578334845; cv=none; d=google.com; s=arc-20160816; b=X81LSA6bai18XoxgwUJPzsG/Mv8IuyHlUDv/xF2RXMJzHXyraG/4rpmjnyrKDDMPVy vGXQeP2Dwap5QhVL0+uCE2OXquvMGp/BgaJ/9ZcFWzOIrpxNoIvlSd+MqtUb5sTdA/ZD cUayw/bVLfOIJHFLax1G1QaEK9KDm3AEHw0OWyGKaqwZ+5XRriokLuW2S2mInplCLvir W7MaQwfjAQa9a6DXm0QwjCtpbxHxgLv6Z/vhoE4/2COy9iayHldOF6oc9rnPE59BY8y0 amXzHGIrckHm0aREu5/erxJI7WqKCsDCkWIbVk3aLAqg/OmkHXwDnHGTBZKkao4Ka91y 4Tfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=gY3N9AW/BeVLH0xQqk5UEbr4T+5CiQQRmrXEg2SfK5A=; b=qp1JCmy54DE8oVMb1Hiy6FgDfaaXvcLCaxjApxHcySvmsC6/4C9zsQCi/t0bwSrb/l 3gULC7Fw3Z0hTXb+MMIkePRAcTPSZYnsjuuqqZNFE2N2vMhF3PpVxIuuHTus9p5VJNn9 9j/jIm27NgBjFqgAxfYO3owE/cO60BdwMGDIxYmDIcC4XahRMJNF1E0x49GldKuBv7LQ BoJAJUmSv8Jrs2V6Y60UOUqy1qSjNjAFpdwZstarZVsumJQQDyVIR3hJ2Jt2eRpGdK0+ UVJJTmiK5d3bsYROK/hLdVDtFM0Xr1jA1iy70EEA3cbPLOy0wb9zwiMZICAqt1874rJY AHow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=l5+chSSB; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-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 p7si35725628ota.299.2020.01.06.10.20.30; Mon, 06 Jan 2020 10:20:45 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-nfs-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=l5+chSSB; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-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 S1726699AbgAFSU2 (ORCPT + 99 others); Mon, 6 Jan 2020 13:20:28 -0500 Received: from mail-yb1-f196.google.com ([209.85.219.196]:47081 "EHLO mail-yb1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726569AbgAFSU2 (ORCPT ); Mon, 6 Jan 2020 13:20:28 -0500 Received: by mail-yb1-f196.google.com with SMTP id k128so11451691ybc.13 for ; Mon, 06 Jan 2020 10:20:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=gY3N9AW/BeVLH0xQqk5UEbr4T+5CiQQRmrXEg2SfK5A=; b=l5+chSSB8oPQM7hPYJY/+OGdxsCe5IXcFG1SOUtrzxYIdjz8M5Pd6b//LkxDTOoJ7J /8X+ZPu+JKxdjmY6WCX8OGDXKdseC0yT4JE81HwDK955Qb/oHCYkwIskbCTbSFBjEQN8 te2VGh1//gpbWsBsmF/YzgAq19TPVGPKNvf7+YiZ+JMtL122hQtuaOjC9OpvSkWiY5qw Z1W6h365q84b9AgXzAnESXs/4OTVWRudis3cD7MpB9hN2qBTgjHjwoVd5VBJgJrqTmh0 tzWZgGnm6+chKKDICeefpOjAMkf6vqCnzPZOL9ojOX+a0mOAPB+qSri6Y6hwNBR+DSru woPw== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=gY3N9AW/BeVLH0xQqk5UEbr4T+5CiQQRmrXEg2SfK5A=; b=FN4uO4b/Zp6D5xMKj/MHiKGFUYsu1M6JRILgZhRMOybbRBqaOEVES6ZFuOtZY1hHNM zFNgzLp93zf8TWzaLwdlVIuva+esqpX4jJCyMqt3555mpiOBbElgT2qDFP7KWWbFaZDm 3bfD8p/f2opH1Lpl9hNPt+1BHStpUcT63XY9zYZIxP9ffnfSRTshEYldkqIhI4/t4sRK Tb2DBc+yzulQs/PutAXSoB2nFCnjsDoQTH0jMEZEvaOza5PXh1R5gYzvIMS5rvTyCRhH ZMRXQdYt1rPMtI3+yjNTw8kPtIX+x8DuW7hDkNQbMK2bC2FbCIV2OX3PavWVkla1Z8ks LsEw== X-Gm-Message-State: APjAAAXEvFBgyPHdB67Se6KA/c0DwEDMSpXxLVT8k0d4MEVCGdkVExw6 qX3tNyJkXnAhamEtVsAy8mT+trBIxQ== X-Received: by 2002:a25:d903:: with SMTP id q3mr73202584ybg.244.1578334827038; Mon, 06 Jan 2020 10:20:27 -0800 (PST) Received: from localhost.localdomain (c-68-40-189-247.hsd1.mi.comcast.net. [68.40.189.247]) by smtp.gmail.com with ESMTPSA id r31sm24800524ywa.82.2020.01.06.10.20.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jan 2020 10:20:26 -0800 (PST) From: Trond Myklebust X-Google-Original-From: Trond Myklebust To: "J. Bruce Fields" Cc: linux-nfs@vger.kernel.org Subject: [PATCH RESEND 4/6] nfsd: Remove unused constant NFSD_FILE_LRU_RESCAN Date: Mon, 6 Jan 2020 13:18:06 -0500 Message-Id: <20200106181808.562969-5-trond.myklebust@hammerspace.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200106181808.562969-4-trond.myklebust@hammerspace.com> References: <20200106181808.562969-1-trond.myklebust@hammerspace.com> <20200106181808.562969-2-trond.myklebust@hammerspace.com> <20200106181808.562969-3-trond.myklebust@hammerspace.com> <20200106181808.562969-4-trond.myklebust@hammerspace.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Signed-off-by: Trond Myklebust --- fs/nfsd/filecache.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/fs/nfsd/filecache.c b/fs/nfsd/filecache.c index e71af553c2ed..6b0ab43b0618 100644 --- a/fs/nfsd/filecache.c +++ b/fs/nfsd/filecache.c @@ -27,7 +27,6 @@ #define NFSD_FILE_HASH_SIZE (1 << NFSD_FILE_HASH_BITS) #define NFSD_LAUNDRETTE_DELAY (2 * HZ) -#define NFSD_FILE_LRU_RESCAN (0) #define NFSD_FILE_SHUTDOWN (1) #define NFSD_FILE_LRU_THRESHOLD (4096UL) #define NFSD_FILE_LRU_LIMIT (NFSD_FILE_LRU_THRESHOLD << 2) @@ -440,15 +439,13 @@ nfsd_file_lru_cb(struct list_head *item, struct list_lru_one *lru, goto out_skip; if (test_and_clear_bit(NFSD_FILE_REFERENCED, &nf->nf_flags)) - goto out_rescan; + goto out_skip; if (!test_and_clear_bit(NFSD_FILE_HASHED, &nf->nf_flags)) goto out_skip; list_lru_isolate_move(lru, &nf->nf_lru, head); return LRU_REMOVED; -out_rescan: - set_bit(NFSD_FILE_LRU_RESCAN, &nfsd_file_lru_flags); out_skip: return LRU_SKIP; } -- 2.24.1