From patchwork Fri May 18 19:45:18 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthew Wilcox X-Patchwork-Id: 10411979 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0FB78602C2 for ; Fri, 18 May 2018 19:45:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F20E620499 for ; Fri, 18 May 2018 19:45:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E6336289F0; Fri, 18 May 2018 19:45:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 76EBA20499 for ; Fri, 18 May 2018 19:45:41 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 920A16B0664; Fri, 18 May 2018 15:45:26 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 8D36C6B0667; Fri, 18 May 2018 15:45:26 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5A0046B0664; Fri, 18 May 2018 15:45:26 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pl0-f72.google.com (mail-pl0-f72.google.com [209.85.160.72]) by kanga.kvack.org (Postfix) with ESMTP id 081976B0666 for ; Fri, 18 May 2018 15:45:26 -0400 (EDT) Received: by mail-pl0-f72.google.com with SMTP id q16-v6so5624303pls.15 for ; Fri, 18 May 2018 12:45:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:dkim-signature:from:to:cc:subject:date :message-id:in-reply-to:references; bh=I+Y7HRCTQY9Z3tCDKiEqmW4yqUYz4ql1iwbDDm8hZ9c=; b=uPX+uk1WoYOsfN3FlwvDAvEXK8woKUjwuMEC6DNcbx7SpHNV3fjT8d0rLEioClIvHz h4tMSkW/vVcAMhG0C1WW4mTCgHxUAOkYOlYVv16YctG+jyeyq7w0HIYegbsRODQP6KKV lo83DAtSqcd1in/eVhYlQCbOHUaoLZK1EDvPYwVyizbcvS+hYYB7diEBZ3UDeLCvgDJ3 AKUvu9X58ICXjlZte5Q0Pmy1GFVeRt3Vu45Ia6U1qqkrEaPtaZDNERGHnuWVR4+Ynl3G LxMauglgy1b80VKI1r6bzwnhgcdYGvVir3aPLBSd0r6+XE0jD3hQDrCzp5M/kwP3i2Dz J+1A== X-Gm-Message-State: ALKqPweiKFI54MqRDGDESRQ2pneEeQic8NSz6kj4/KZNKnftKqJVdJpP MkpXPOfsM1UV4sBLDVPxL65fkkiSpw3Dn2BDggc4TUp2B9IQfDLfUicubMJbCnMWKHxNW8VzWmK WiOqUhVl4O9dgpZXDxzeF5QKdtzWIeYfoDjZbF4x3eKR5VuTXimUQ4YO33z4SK4HXSw== X-Received: by 2002:a63:6c04:: with SMTP id h4-v6mr8592681pgc.220.1526672725724; Fri, 18 May 2018 12:45:25 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpPzre0vIWLddWIFqc5shnO5KlT6hfcfupY5jZAsPOxOq/4irpXxbFjc01Mz7TcVRw2gQtP X-Received: by 2002:a63:6c04:: with SMTP id h4-v6mr8592667pgc.220.1526672725018; Fri, 18 May 2018 12:45:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526672724; cv=none; d=google.com; s=arc-20160816; b=GvqKbKvouojBl7511MHK21VZUkS0bjphxxZ6JKxKDgUyNDcCLhdlZpa3VklD1bXE4I GI+qD2/wvIYERWcJTUGNNDi8xj9gL3AUccpTVGCIraCfxNxwqU6RcqLU+Fydm4rwUf/i EIzHeFOXm+ugBi5sv/YzSwdokXuqY6FEqemX42gPZyol+63GEdUlxO4PMn1WADkCLom1 R+4Qtkx3kmvz9Q0xWps/8RMfC8lmTCaolF+0PW2kfnc9yGjiJ68U9SocOShUzpf05Q4H XYgcXsJsLEUbG86lBCSW72BB9wH2cqVv3ww4qZdTSMZQG3sGSbA54JfpETu2J7xH1EaC s3Tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=I+Y7HRCTQY9Z3tCDKiEqmW4yqUYz4ql1iwbDDm8hZ9c=; b=ycv1xTCOQbrVSxZjtbZecjY2vVR1WhOiWCg9tE2ruB4+Nf5w6GdLfxeKEzwam3flvD JvwqwrUrStjwfQFYh5NWYypBUqt+Oua8SCAx1M1fvw5u987qo+dnapIIUqNXEAED+dfP z6UAh84BJvS/CoKAEfXWeQPAEurr3vmu7Sx5ZbBJW2X2XBU2SoBWcGkZYbeuPrV/+uew Gh+BQHUpx+zWWM8lbrQpA9XAgZLshSlnkugSu0QHPvivPXb5D9xc3JhjldcFBuPtvxo2 nV0dHztofdS5Ejy/9QNvOcjE8ef1lI0h2ljXMKJ3j4F5oXEsAVf+ehgXtdVSHCdhl7zg FkvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20170209 header.b=h/tC02Jf; spf=pass (google.com: best guess record for domain of willy@infradead.org designates 2607:7c80:54:e::133 as permitted sender) smtp.mailfrom=willy@infradead.org Received: from bombadil.infradead.org (bombadil.infradead.org. [2607:7c80:54:e::133]) by mx.google.com with ESMTPS id s88-v6si8132824pfe.290.2018.05.18.12.45.24 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 18 May 2018 12:45:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of willy@infradead.org designates 2607:7c80:54:e::133 as permitted sender) client-ip=2607:7c80:54:e::133; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20170209 header.b=h/tC02Jf; spf=pass (google.com: best guess record for domain of willy@infradead.org designates 2607:7c80:54:e::133 as permitted sender) smtp.mailfrom=willy@infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=References:In-Reply-To:Message-Id: Date:Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=I+Y7HRCTQY9Z3tCDKiEqmW4yqUYz4ql1iwbDDm8hZ9c=; b=h/tC02JfMpVO3qk+GBfFa8je7 1g2ebSGadHT5ZUhJJ9+OaLjW29EwbqQCzLhAP3a4ja3M9Fw+ZYTcRoZVyiBc8A+Agt605Gb1Pn8Dv IYZBLl96lVA8x1YqTuWBikz4FOgf8jo19IXVINSByLiqWRy5DEecPdFQk7wReqmNz5tX0/G2jP44k 4c+IEE1a8srBnG5dJzmMmla+Ph3FT0ZAVNyH/IUpYTpdcdkv/3hB+baaHpnUhe1Wp5Nqipd0ojqBE QgyLcOP8ez/x4Fg4wzyNh/1vYLg/sa6Ykmw8b5zamwAEmOkXMR6Mh1yA8+s8YzeVQnOKVsTU52zVA nv7BBqumw==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1fJlJc-00012T-DP; Fri, 18 May 2018 19:45:24 +0000 From: Matthew Wilcox To: linux-mm@kvack.org Cc: Matthew Wilcox , Andrew Morton , "Kirill A . Shutemov" , Christoph Lameter , Lai Jiangshan , Pekka Enberg , Vlastimil Babka , Dave Hansen , =?UTF-8?q?J=C3=A9r=C3=B4me=20Glisse?= Subject: [PATCH v6 16/17] slub: Remove 'reserved' file from sysfs Date: Fri, 18 May 2018 12:45:18 -0700 Message-Id: <20180518194519.3820-17-willy@infradead.org> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180518194519.3820-1-willy@infradead.org> References: <20180518194519.3820-1-willy@infradead.org> X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: X-Virus-Scanned: ClamAV using ClamSMTP From: Matthew Wilcox Christoph doubts anyone was using the 'reserved' file in sysfs, so remove it. Signed-off-by: Matthew Wilcox Acked-by: Christoph Lameter --- mm/slub.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/mm/slub.c b/mm/slub.c index 33a811168fa9..4d77fd8450fa 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -5094,12 +5094,6 @@ static ssize_t destroy_by_rcu_show(struct kmem_cache *s, char *buf) } SLAB_ATTR_RO(destroy_by_rcu); -static ssize_t reserved_show(struct kmem_cache *s, char *buf) -{ - return sprintf(buf, "0\n"); -} -SLAB_ATTR_RO(reserved); - #ifdef CONFIG_SLUB_DEBUG static ssize_t slabs_show(struct kmem_cache *s, char *buf) { @@ -5412,7 +5406,6 @@ static struct attribute *slab_attrs[] = { &reclaim_account_attr.attr, &destroy_by_rcu_attr.attr, &shrink_attr.attr, - &reserved_attr.attr, &slabs_cpu_partial_attr.attr, #ifdef CONFIG_SLUB_DEBUG &total_objects_attr.attr,