From patchwork Fri May 4 18:33:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthew Wilcox X-Patchwork-Id: 10381355 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 179686037D for ; Fri, 4 May 2018 18:59:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 08D192958E for ; Fri, 4 May 2018 18:59:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F19F52958D; Fri, 4 May 2018 18:59:05 +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 80F7829594 for ; Fri, 4 May 2018 18:59:04 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 42B5A6B0273; Fri, 4 May 2018 14:33:31 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 3E3CC6B0274; Fri, 4 May 2018 14:33:31 -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 206686B0275; Fri, 4 May 2018 14:33:31 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pf0-f200.google.com (mail-pf0-f200.google.com [209.85.192.200]) by kanga.kvack.org (Postfix) with ESMTP id D650E6B0273 for ; Fri, 4 May 2018 14:33:30 -0400 (EDT) Received: by mail-pf0-f200.google.com with SMTP id x23so10461698pfm.7 for ; Fri, 04 May 2018 11:33:30 -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=k3jpiZRC+WCG+cz66PLs33tUFcJZ/5WUIAhH0ultXJI=; b=Ia6MnKd7gcJZyy9iwydzaOJO7PUUYjuhh6+HkCh9J8aH2HR5Bre/eixXUwCr1C0n1l pT4xEVo7hl+TcNjePz7TZUQqyaSKihe4wSTDk/lgidyPAWM3sbJubFnTLTpvIovwlNA7 QjUgUVdIZJNQnqclWKQ/DTmMvfIrdLNaOf6w+86goa5R/AbNzOk4fvHA/aoeeqLONX3O L5J5BMY+vRTd3ef13zyIvN9T+smwvQmOp+7uo+9MTyKhKSZFgJf8Gcersg8/hYomVFv+ auunXPJeOZObAvIxR8qmaERH0WSSp+9Xms4M+u6rGDieWhC5TK6RmklZe7pSx/ATcxmx atMA== X-Gm-Message-State: ALQs6tA3TCQSu7iROujoghf1SbGZ1TgPRhN0ej89nQ0KO4weigxsoqMZ XyJtaRbGHGDJyn8Gdju5Yg9O7mQcUtHDvsaJDINTsHWiJF3FQbmHsls94Ospek2ru1FZOX0MpPP apRT9w+WNPc5qMUe/bgLqYW2KxSNfH+TqzY+7yxvj1MrUg5asPSeX9eWpDNEEsqsSJg== X-Received: by 2002:a63:7b53:: with SMTP id k19-v6mr23288115pgn.146.1525458810571; Fri, 04 May 2018 11:33:30 -0700 (PDT) X-Google-Smtp-Source: AB8JxZo4hpbvMRVVWG9PxXr7+FZIDbQ89D2A0edXuN9okysJJBmUnOvz2EkT/on/adGKBw5eALku X-Received: by 2002:a63:7b53:: with SMTP id k19-v6mr23288066pgn.146.1525458808933; Fri, 04 May 2018 11:33:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525458808; cv=none; d=google.com; s=arc-20160816; b=z2BpqSsDPZR5Z7I2ik0o1dUROT2DC4e7rTGsUu9SLVZ9eg42tAAXdrLylWMjHJCov8 5odeppl2LcTdKhrYXEQOe0CXfkZWlnw5ovX0TpCJLRVR8R0CMCU9orjUt2EPJ514Xs7w iNhpy9jt/1OzlvQ6FqdvnEoTg3rX8iPdHNFDWrdN7t+xUaz3Cgf41UcJHaz+iPHYfLFs K0H78bd31l0gUcBfJZEqkLFCdgZw8jDl823CH8YlQkNgY/tRNp+bG9OjknAuW8ghIBvw zUV93IEZshn803pDXruuUxqghBK3Q8ARaLY02ebBrxZObKE3g2A/VHZeinDyd9F8qxkJ 3bSg== 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=k3jpiZRC+WCG+cz66PLs33tUFcJZ/5WUIAhH0ultXJI=; b=oPZq/0QWEYD+1aXA2QU/jb8GV0nhHSnwqaYXrZE6euK9bWNOwCCWmwiPKZteUyPU+F uyRddh5KBYYUlbXRXMM3V1ARTKG1O28Z6viINFGGGYxIt8HPjemNMK2uDqanJBpGMyjK KzUk8zJQJZMe55phy9dJSe/xM6uGmSSOQiL0VYOEGWE0Kj9PqOsrlOuZnxNLwAnDZ2ew XQkSoso2OOBFtOyReWQw8jM5R7g+8Anmjw/3msi7tyxLY+C/dnv25Ax6Muz/DvAaBSkK iSg3zvmFp0SqdTyClqPwT5RHtwLqQWfXvqICTsDD6tplBbAj2+q+odIRet1LY/UsV5yC BrCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20170209 header.b=iLFuKKQT; 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 w5-v6si13435862pgt.68.2018.05.04.11.33.28 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 04 May 2018 11:33:28 -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=iLFuKKQT; 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=k3jpiZRC+WCG+cz66PLs33tUFcJZ/5WUIAhH0ultXJI=; b=iLFuKKQTP8i7u7MQnkQU1el9J u9EWt2/F5LXkjnFZG8irEYP3iOVKBOIHMQ7HdfvWoYnQsiNnEvqShj0wSUp/o1NLR9eB9HyNmEmPK o5OpOlHK0PCGMjmKbEp96Y9IEz/K9XDnwHBGaWKFJzeX5w5DdP58sMT8mgvssHiVc4xuxxDOSH5Rh 59xbLGxlR8vG0C5w5P+KKwpQ8hZQ+yhmkwXMGPItwlucNi+7YJgYf23JTj7OudvJM7N20XTeiIxiv wWDuHzp+5irlu1sVNFaHn9DwtzGZNNSdIHZSVZ06tAlbmi6+1oiv3wOVbSy9a7e5AT/gXcW5PMf/T ajGQ/aYnQ==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1fEfWK-0003oS-2h; Fri, 04 May 2018 18:33:28 +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 v5 16/17] slub: Remove 'reserved' file from sysfs Date: Fri, 4 May 2018 11:33:17 -0700 Message-Id: <20180504183318.14415-17-willy@infradead.org> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180504183318.14415-1-willy@infradead.org> References: <20180504183318.14415-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,