Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934074AbbHKKrg (ORCPT ); Tue, 11 Aug 2015 06:47:36 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:39337 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755087AbbHKKrf convert rfc822-to-8bit (ORCPT ); Tue, 11 Aug 2015 06:47:35 -0400 X-AuditID: cbfee68e-f79c56d000006efb-86-55c9d2b8ed0b From: PINTU KUMAR To: "'Vlastimil Babka'" , akpm@linux-foundation.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, iamjoonsoo.kim@lge.com, mhocko@suse.cz, riel@redhat.com, emunson@akamai.com, mgorman@suse.de, zhangyanfei@cn.fujitsu.com, rientjes@google.com Cc: cpgs@samsung.com, pintu_agarwal@yahoo.com, pintu.k@outlook.com, vishnu.ps@samsung.com, rohit.kr@samsung.com References: <1438956233-28690-1-git-send-email-pintu.k@samsung.com> <55C4BE1A.8050408@suse.cz> In-reply-to: <55C4BE1A.8050408@suse.cz> Subject: RE: [PATCH 1/1] mm: compaction: include compact_nodes in compaction.h Date: Tue, 11 Aug 2015 16:15:54 +0530 Message-id: <040301d0d423$0f1b36d0$2d51a470$@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=UTF-8 Content-transfer-encoding: 8BIT X-Mailer: Microsoft Outlook 14.0 Thread-index: AQJQT2hrNvvPV/GumOnzM32rc3Ps1AIikCuunPZ3i0A= Content-language: en-us X-Brightmail-Tracker: H4sIAAAAAAAAA02Sa0iTURzGOXvfba/S4LRmnoyspBhlac5LR4vo03j9kAgpXSDcWi868rI2 nYUFKzF0wjA11FfToV3MDHFamYFuy1JT0dTEW2KYt8QFWnMqas4Z+O13/uc5z/Mc+FOEkOV6 UcrEZEadKI/34bmT1aKgeycbetujT9ma+LikppqHZ63HsK17kYNfZqfzcF9jCQ+PVW9wcZ5t CuBf6Utc3J3Zx8X2+RE+XuuvIfHDp7UcPJ2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t1XyDo53jjc1MzDUNbS0MFdSyEvMTbVVcvEJ0HXLzAH6TEmhLDGnFCgUkFhcrKRvh2lCaIib rgVMY4Sub0gQXI+RARpIWMOY0frlEntBk2jFzB9XmBoYfwl0MXJySAiYSDydcIcFwhaTuHBv PVsXIxeHkMAsRolbnbNZIJy3jBI/Fl9g7GLk4GATUJc4doAXJC4i0MEk8a1vOjtIN7NAocSp Q/PBJgkJJEhs/fuVFcTmBKqf/3k5E4gtLOAncXLzQbA4i4CqxM99Z8DqeQUsJXZP6IayBSV+ TL7HAjFTXWLSvEXMELa2xJN3F1ghLlWQ2HH2NSOILSJgJbH9xHNGiBpxiUkPHrJPYBSahWTU LCSjZiEZNQtJywJGllWMEqkFyQXFSem5hnmp5XrFibnFpXnpesn5uZsYwYnsmdQOxoO73A8x CnAwKvHwCnieDBViTSwrrsw9xCjBwawkwstxGijEm5JYWZValB9fVJqTWnyI0RTo2YnMUqLJ +cAkm1cSb2hsYm5qbGppYmFiZqkkziu7YXOokEB6YklqdmpqQWoRTB8TB6dUA2Nxiz7z9F/f QnzW/j7g/G8TX3aMofdl4YDFYQIWswXP89fliU7v6by96ijbtyVK7nK9e6ewqrYLVDAa3ZSd Yn605OL0a9kfX3Br1rDVTWBx/LTszO9fqs++XY/7FrFE237bCpnz/UvOVWpmtNV1C2w7ZL9x 1U0JI4szxd66cltnz9Oz8/VadlWJpTgj0VCLuag4EQAAvFvPegMAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2842 Lines: 72 Hi, > -----Original Message----- > From: Vlastimil Babka [mailto:vbabka@suse.cz] > Sent: Friday, August 07, 2015 7:48 PM > To: Pintu Kumar; akpm@linux-foundation.org; linux-kernel@vger.kernel.org; > linux-mm@kvack.org; iamjoonsoo.kim@lge.com; mhocko@suse.cz; > riel@redhat.com; emunson@akamai.com; mgorman@suse.de; > zhangyanfei@cn.fujitsu.com; rientjes@google.com > Cc: cpgs@samsung.com; pintu_agarwal@yahoo.com; pintu.k@outlook.com; > vishnu.ps@samsung.com; rohit.kr@samsung.com > Subject: Re: [PATCH 1/1] mm: compaction: include compact_nodes in > compaction.h > > On 08/07/2015 04:03 PM, Pintu Kumar wrote: > > This patch declares compact_nodes prototype in compaction.h header > > file. > > This will allow us to call compaction from other places. > > For example, during system suspend, suppose we want to check the > > fragmentation state of the system. Then based on certain threshold, we > > can invoke compaction, when system is idle. > > There could be other use cases. > > Isn't it more common to introduce such visibility changes only as part of series > that actually benefit from it? > Other series are not ready right now and not defined yet. It may take longer time. I thought, it is left to the user, if somebody wants to invoke compaction from other sub-system. > Otherwise next month somebody might notice that it's unused outside > compaction.c and send a cleanup patch to make it static again... > > > Signed-off-by: Pintu Kumar > > --- > > include/linux/compaction.h | 2 +- > > mm/compaction.c | 2 +- > > 2 files changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/include/linux/compaction.h b/include/linux/compaction.h > > index aa8f61c..800ff50 100644 > > --- a/include/linux/compaction.h > > +++ b/include/linux/compaction.h > > @@ -50,7 +50,7 @@ extern bool compaction_deferred(struct zone *zone, int > order); > > extern void compaction_defer_reset(struct zone *zone, int order, > > bool alloc_success); > > extern bool compaction_restarting(struct zone *zone, int order); > > - > > +extern void compact_nodes(void); > > #else > > static inline unsigned long try_to_compact_pages(gfp_t gfp_mask, > > unsigned int order, int alloc_flags, diff --git > a/mm/compaction.c > > b/mm/compaction.c index 16e1b57..b793922 100644 > > --- a/mm/compaction.c > > +++ b/mm/compaction.c > > @@ -1657,7 +1657,7 @@ static void compact_node(int nid) > > } > > > > /* Compact all nodes in the system */ -static void > > compact_nodes(void) > > +void compact_nodes(void) > > { > > int nid; > > > > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/