From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Wagner Subject: Re: [PATCH 11/12] cgroup: replace cftype->read_seq_string() with cftype->seq_show() Date: Thu, 28 Nov 2013 10:07:40 +0100 Message-ID: <529707DC.3030401@bmw-carit.de> References: <1385595759-17656-1-git-send-email-tj@kernel.org> <1385595759-17656-12-git-send-email-tj@kernel.org> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1385595759-17656-12-git-send-email-tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Content-Type: text/plain; charset="us-ascii"; format="flowed" To: Tejun Heo , lizefan-hv44wF8Li93QT0dZR+AlfA@public.gmane.org Cc: Jens Axboe , nhorman-2XuSBdqkA4R54TAoqtyWWQ@public.gmane.org, containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, mhocko-AlSwsSmVLrQ@public.gmane.org, mingo-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org, hannes-druUgvl0LCNAfugRpC6u6w@public.gmane.org, cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, vgoyal-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org Hi Tejun, On 11/28/2013 12:42 AM, Tejun Heo wrote: > In preparation of conversion to kernfs, cgroup file handling is > updated so that it can be easily mapped to kernfs. This patch > replaces cftype->read_seq_string() with cftype->seq_show() which is > not limited to single_open() operation and will map directcly to > kernfs seq_file interface. > > The conversions are mechanical. As ->seq_show() doesn't have @css and > @cft, the functions which make use of them are converted to use > seq_css() and seq_cft() respectively. In several occassions, e.f. if > it has seq_string in its name, the function name is updated to fit the > new method better. > > This patch does not introduce any behavior changes. > > Signed-off-by: Tejun Heo > Cc: Jens Axboe > Cc: Vivek Goyal > Cc: Ingo Molnar > Cc: Peter Zijlstra > Cc: Johannes Weiner > Cc: Michal Hocko > Cc: Balbir Singh > Cc: KAMEZAWA Hiroyuki > Cc: Neil Horman > Cc: Daniel Wagner > Cc: Aristeu Rozanski Ack for netprio_cgroup.c. Thanks, daniel