From: akpm@linux-foundation.org Subject: [merged] writeback-convert-timers-to-use-timer_setup.patch removed from -mm tree Date: Thu, 16 Nov 2017 12:03:39 -0800 Message-ID: <20171116200339.01mUfEAMU%akpm@linux-foundation.org> Reply-To: linux-kernel@vger.kernel.org Return-path: Received: from mail.linuxfoundation.org ([140.211.169.12]:47078 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935293AbdKPUDk (ORCPT ); Thu, 16 Nov 2017 15:03:40 -0500 Sender: mm-commits-owner@vger.kernel.org List-Id: mm-commits@vger.kernel.org To: hannes@cmpxchg.org, jack@suse.cz, jlayton@redhat.com, keescook@chromium.org, mawilcox@microsoft.com, mm-commits@vger.kernel.org, vdavydov.dev@gmail.com The patch titled Subject: mm/page-writeback.c: convert timers to use timer_setup() has been removed from the -mm tree. Its filename was writeback-convert-timers-to-use-timer_setup.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ From: Kees Cook Subject: mm/page-writeback.c: convert timers to use timer_setup() In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Link: http://lkml.kernel.org/r/20171016225913.GA99214@beast Signed-off-by: Kees Cook Reviewed-by: Jan Kara Cc: Johannes Weiner Cc: Vladimir Davydov Cc: Matthew Wilcox Cc: Jeff Layton Signed-off-by: Andrew Morton --- mm/page-writeback.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff -puN mm/page-writeback.c~writeback-convert-timers-to-use-timer_setup mm/page-writeback.c --- a/mm/page-writeback.c~writeback-convert-timers-to-use-timer_setup +++ a/mm/page-writeback.c @@ -628,9 +628,9 @@ EXPORT_SYMBOL_GPL(wb_writeout_inc); * On idle system, we can be called long after we scheduled because we use * deferred timers so count with missed periods. */ -static void writeout_period(unsigned long t) +static void writeout_period(struct timer_list *t) { - struct wb_domain *dom = (void *)t; + struct wb_domain *dom = from_timer(dom, t, period_timer); int miss_periods = (jiffies - dom->period_time) / VM_COMPLETIONS_PERIOD_LEN; @@ -653,8 +653,7 @@ int wb_domain_init(struct wb_domain *dom spin_lock_init(&dom->lock); - setup_deferrable_timer(&dom->period_timer, writeout_period, - (unsigned long)dom); + timer_setup(&dom->period_timer, writeout_period, TIMER_DEFERRABLE); dom->dirty_limit_tstamp = jiffies; _ Patches currently in -mm which might be from keescook@chromium.org are sh-boot-add-static-stack-protector-to-pre-kernel.patch lkdtm-include-warn-format-string.patch bug-define-the-cut-here-string-in-a-single-place.patch bug-fix-cut-here-location-for-__warn_taint-architectures.patch fs-nilfs2-convert-timers-to-use-timer_setup.patch