From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A84C7ECAAA1 for ; Fri, 9 Sep 2022 22:07:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229567AbiIIWHM (ORCPT ); Fri, 9 Sep 2022 18:07:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230103AbiIIWHM (ORCPT ); Fri, 9 Sep 2022 18:07:12 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2CFD22A251 for ; Fri, 9 Sep 2022 15:07:11 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id CCD9BB82320 for ; Fri, 9 Sep 2022 22:07:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 751CCC433D6; Fri, 9 Sep 2022 22:07:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1662761228; bh=FeyFtTNIs3PejOjgsTNigQgWkIk4/vb+huBug8hjqPw=; h=Date:To:From:Subject:From; b=czfJ9lL3+1whOhj6vATs3apdYZzbLAa5MYCbBN+gOPHmeYZr+7T7v4Ii2h/fZwdDQ QVIQ1RonTgnJ1NXC/5qjuysU5FbPUOD5g4rMbmIdfarvMd+zE26KYdkJ0joq+8tU0B PeAm06WzwCFvPCd9ptzKMPkLMm3rq5JyiHVADXYs= Date: Fri, 09 Sep 2022 15:07:07 -0700 To: mm-commits@vger.kernel.org, zhanglianjie@uniontech.com, willy@infradead.org, vbabka@suse.cz, neilb@suse.de, jack@suse.cz, dhowells@redhat.com, bvanassche@acm.org, axboe@kernel.dk, linmiaohe@huawei.com, akpm@linux-foundation.org From: Andrew Morton Subject: + writeback-remove-unused-macro-dirty_full_scope.patch added to mm-unstable branch Message-Id: <20220909220708.751CCC433D6@smtp.kernel.org> Precedence: bulk Reply-To: linux-kernel@vger.kernel.org List-ID: X-Mailing-List: mm-commits@vger.kernel.org The patch titled Subject: writeback: remove unused macro DIRTY_FULL_SCOPE has been added to the -mm mm-unstable branch. Its filename is writeback-remove-unused-macro-dirty_full_scope.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/writeback-remove-unused-macro-dirty_full_scope.patch This patch will later appear in the mm-unstable branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next via the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days ------------------------------------------------------ From: Miaohe Lin Subject: writeback: remove unused macro DIRTY_FULL_SCOPE Date: Fri, 9 Sep 2022 10:57:11 +0800 It's introduced but never used. Remove it. Link: https://lkml.kernel.org/r/20220909025711.32012-1-linmiaohe@huawei.com Signed-off-by: Miaohe Lin Reviewed-by: Jan Kara Cc: Bart Van Assche Cc: David Howells Cc: Jens Axboe Cc: Matthew Wilcox Cc: NeilBrown Cc: Vlastimil Babka Cc: zhanglianjie Signed-off-by: Andrew Morton --- include/linux/writeback.h | 8 -------- 1 file changed, 8 deletions(-) --- a/include/linux/writeback.h~writeback-remove-unused-macro-dirty_full_scope +++ a/include/linux/writeback.h @@ -17,20 +17,12 @@ struct bio; DECLARE_PER_CPU(int, dirty_throttle_leaks); /* - * The 1/4 region under the global dirty thresh is for smooth dirty throttling: - * - * (thresh - thresh/DIRTY_FULL_SCOPE, thresh) - * - * Further beyond, all dirtier tasks will enter a loop waiting (possibly long - * time) for the dirty pages to drop, unless written enough pages. - * * The global dirty threshold is normally equal to the global dirty limit, * except when the system suddenly allocates a lot of anonymous memory and * knocks down the global dirty threshold quickly, in which case the global * dirty limit will follow down slowly to prevent livelocking all dirtier tasks. */ #define DIRTY_SCOPE 8 -#define DIRTY_FULL_SCOPE (DIRTY_SCOPE / 2) struct backing_dev_info; _ Patches currently in -mm which might be from linmiaohe@huawei.com are mm-page_alloc-minor-clean-up-for-memmap_init_compound.patch hugetlb_cgroup-remove-unneeded-nr_pages-0-check.patch hugetlb_cgroup-hugetlbfs-use-helper-macro-sz_1kmg.patch hugetlb_cgroup-remove-unneeded-return-value.patch hugetlb_cgroup-use-helper-macro-numa_no_node.patch hugetlb_cgroup-use-helper-for_each_hstate-and-hstate_index.patch mm-hugetlb-fix-incorrect-update-of-max_huge_pages.patch mm-hugetlb-fix-warn_onkobj-in-sysfs_create_group.patch mm-hugetlb-fix-missing-call-to-restore_reserve_on_error.patch mm-hugetlb-fix-missing-call-to-restore_reserve_on_error-v2.patch mm-hugetlb_vmemmap-add-missing-smp_wmb-before-set_pte_at.patch mm-hugetlb-fix-sysfs-group-leak-in-hugetlb_unregister_node.patch mm-hugetlb-make-detecting-shared-pte-more-reliable.patch mm-hwpoison-fix-page-refcnt-leaking-in-try_memory_failure_hugetlb.patch mm-hwpoison-fix-page-refcnt-leaking-in-unpoison_memory.patch mm-hwpoison-fix-extra-put_page-in-soft_offline_page.patch mm-hwpoison-fix-possible-use-after-free-in-mf_dax_kill_procs-v2.patch mm-hwpoison-kill-procs-if-unmap-fails.patch mm-hwpoison-kill-procs-if-unmap-fails-v2.patch mm-hwpoison-avoid-trying-to-unpoison-reserved-page.patch mm-hwpoison-use-clearpagehwpoison-in-memory_failure.patch mm-hwpoison-use-__pagemovable-to-detect-non-lru-movable-pages.patch mm-hwpoison-use-__pagemovable-to-detect-non-lru-movable-pages-fix.patch mm-hwpoison-use-num_poisoned_pages_sub-to-decrease-num_poisoned_pages.patch mm-hwpoison-avoid-unneeded-page_mapped_in_vma-overhead-in-collect_procs_anon.patch mm-hwpoison-check-pagetable-explicitly-in-hwpoison_user_mappings.patch mm-hwpoison-cleanup-some-obsolete-comments.patch hugetlb-make-hugetlb_cma_check-static.patch hugetlb-use-helper-macro-sz_1k.patch hugetlb-use-list_head-to-define-a-list-head.patch hugetlb-use-sizeof-to-get-the-array-size.patch hugetlb-use-helper-huge_ptepmd_lock.patch hugetlb-pass-null-to-kobj_to_hstate-if-nid-is-unused.patch hugetlb-kill-hugetlbfs_pagecache_page.patch hugetlb-add-comment-for-subtle-sethpagevmemmapoptimized.patch hugetlb-remove-meaningless-bug_onhuge_pte_none.patch hugetlb-make-hugetlb-depends-on-sysfs-or-sysctl.patch writeback-remove-unused-macro-dirty_full_scope.patch