Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5848913ybl; Tue, 10 Dec 2019 12:30:46 -0800 (PST) X-Google-Smtp-Source: APXvYqyJJLPVM1M7p3ozqUCnYqhcMQtj8I6osz/lSURrGzreuCAc0zKUfN1CbJcCAdH3YYiJuFzb X-Received: by 2002:a05:6830:1047:: with SMTP id b7mr13278698otp.77.1576009846117; Tue, 10 Dec 2019 12:30:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576009846; cv=none; d=google.com; s=arc-20160816; b=Qqtg3c7TTmPLCV1+S5+Qwlx4OkaxOE7FxAgxAn3RVTKSanag684xzzeJUWVv5lampN vE7+W3U2sZxVREjo+LlBY6kaq2qG/q1/Y0EZnQpZlXQKF16cQZkZFJEygd8FJv4ZGTPc Hw35GwV+5uIJp+wnT0pGRQm8LQ9LdrYBQlzRU3vs69w5tN/cTVMWpeIHLgjjUNTNRD5r s2FM5RpFyosb/eLtyV4NG460jWdUjS2EqaC/Do5/BWl6OWpyEjlsGOiKJewckYsJoUa2 PQ+ZxXPx5n7TdeT2k6yuQ9+nI7EUrmqTdcb+9yLkH6y45J0/QHVf6TJoeW7AGvqSMkwZ mkTA== 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=t/+PxnQdKAutGXiVSCU+o4iJAihQ69OWMQr+GyxT+TY=; b=fh4L/JoIzZ14SMXf3QBNGG365LAzpzLVLfKo9BYz+znW2fnerxByVZb7yj9RCjpl8a azemd0/YoiZG9QCaX5SH/V2UE5zdZ1GiRblkjV4Ss+GHqPSR8bzRalB/BoblLydHATKc YykZjo0acXAgc5W8qFI8R4fWJstsNUVTIdp97YohNpivhe3OOE2ctCBc/4dScQExwhWe 3YzaILefwiQ1Jpla+Geah1s37PYnk+2V1athwnYeHvJiyBqA2aqANc0I6KtAeEl0D4P+ tNgFCl+gHPHJEea/ZrAltowWY1YZ+ObIqJk3juPHqv/vzUnsCyXzRjbs8Q/xfXe7Rlep ugkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kbVyuAO4; 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 g7si2650808otq.28.2019.12.10.12.30.34; Tue, 10 Dec 2019 12:30:46 -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=kbVyuAO4; 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 S1726879AbfLJU3v (ORCPT + 99 others); Tue, 10 Dec 2019 15:29:51 -0500 Received: from mail-yb1-f194.google.com ([209.85.219.194]:43307 "EHLO mail-yb1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726881AbfLJU3v (ORCPT ); Tue, 10 Dec 2019 15:29:51 -0500 Received: by mail-yb1-f194.google.com with SMTP id d34so3883991yba.10 for ; Tue, 10 Dec 2019 12:29:50 -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=t/+PxnQdKAutGXiVSCU+o4iJAihQ69OWMQr+GyxT+TY=; b=kbVyuAO4qPzAA6L5vQZxUBorhOQinIRUrPbrR5EYmU5Bh0hNoLC82jzKLQSqtP/l51 BpgcZ27wYwU12K0KfmxzezSmwhoEcImaVl+sCKlMHXMu1S0BXZ64Vox5NWCV0DbE7OyZ 1Cm7vKjveEJq8ndyqX60jZcK4tWwB8njFlHdM1ShvJKyo5zFTjmjyggvEu6vK+TIwXez XCmB3LbKKOlec6xTyzz9nMRwRhyymIVEe4ew3YU9YLSAKBcdhDqhOi+lN+7wHgwcfbmV 8exDqqvW65vJ0OI9nseRUVT6jpJU7/peyRymfWNx6s4jXZPdpP+LWzVQL1G7hwowjZRK Kw/g== 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=t/+PxnQdKAutGXiVSCU+o4iJAihQ69OWMQr+GyxT+TY=; b=YrpGy8T7aJPQn7gzjuW9NOXv1HRtaSJPkmv9+wYM7JHK0RD0ORiYR16w9NcQ9AK+hM xAZNmz0h0FF3C8wKpQ4IMTc7D80E4RlB9XDwVtJld43unAhNK5Cfd1I7kLUbhlqZucLR q9on5UqwNDQSSOG8kaPWUtaVCJKKOwKEGUfFMMDr0D+mieaeshncXvtTWJl+VESpfcBD cnjp2JvR1fEMSZMcJpuOqrIN0eSNChARCbT/isciF+VABBKn1B9pOnqXLt3AwECvuPm1 ZIWWD6pcqgLQ8qXvjU1DbWZZk3AIliNKZRs5tMDvBimtVQU/1eFeK+6MRim3jfvQPajx H/oQ== X-Gm-Message-State: APjAAAXkXZ2bGVjgTzMhGrNbZeRXcNrOG0sJrmslaoZxovwH3VFzMyb8 wm+vmG2zkJ/N9FDpsZ3Bkt0StDI= X-Received: by 2002:a25:2a50:: with SMTP id q77mr25028354ybq.47.1576009789524; Tue, 10 Dec 2019 12:29:49 -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 x84sm1947508ywg.47.2019.12.10.12.29.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Dec 2019 12:29:48 -0800 (PST) From: Trond Myklebust X-Google-Original-From: Trond Myklebust To: "J. Bruce Fields" Cc: Chuck Lever , linux-nfs@vger.kernel.org Subject: [PATCH 4/6] nfsd: Remove unused constant NFSD_FILE_LRU_RESCAN Date: Tue, 10 Dec 2019 15:27:33 -0500 Message-Id: <20191210202735.304477-5-trond.myklebust@hammerspace.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191210202735.304477-4-trond.myklebust@hammerspace.com> References: <20191210202735.304477-1-trond.myklebust@hammerspace.com> <20191210202735.304477-2-trond.myklebust@hammerspace.com> <20191210202735.304477-3-trond.myklebust@hammerspace.com> <20191210202735.304477-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.23.0