From: Andrew Morton Subject: Re: [RFC/PATCH 6/8]: CGroup Files: Remove cpuset_common_file_write() Date: Tue, 13 May 2008 13:11:34 -0700 Message-ID: <20080513131134.8b1cefe2.akpm@linux-foundation.org> References: <20080513063707.049448000@menage.corp.google.com> <20080513071522.984545000@menage.corp.google.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20080513071522.984545000-B63HFAS8fGlSzHKm+aFRNNkmqwFzkYv6@public.gmane.org> 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 To: menage-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, xemul-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org List-Id: containers.vger.kernel.org On Mon, 12 May 2008 23:37:13 -0700 menage-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org wrote: > @@ -1412,14 +1355,18 @@ static struct cftype files[] = { > { > .name = "cpus", > .read = cpuset_common_file_read, > - .write = cpuset_common_file_write, > + .write_string = update_cpumask, > + .max_write_len = (100U + 6 * NR_CPUS), hm, magic handwavy surely-enough-for-anyone constants. What's going on here? > + .lockmode = CFT_LOCK_CGL_WRITE, > .private = FILE_CPULIST, > },