From: Paul Menage Subject: Re: [PATCH 1/2] [RFC] Add file f_flags to cgroup write_string ops Date: Tue, 27 Oct 2009 23:04:42 -0700 Message-ID: <6599ad830910272304j495c99a2t4265d501765937b5@mail.gmail.com> References: <1256570129-13107-1-git-send-email-matthltc@us.ibm.com> <4AE7988A.6080601@cn.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4AE7988A.6080601-BthXqXjhjHXQFUHtdCDX3A@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: Li Zefan Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, Nathan Lynch , Balbir Singh , Pavel Emelyanov List-Id: containers.vger.kernel.org On Tue, Oct 27, 2009 at 6:04 PM, Li Zefan wrote: > > I think maybe it's better to store struct file *file to struct cftype, > so we don't need to change write_string(), write(), write_u64() > and write_s64(). We can't do that - multiple open files could be using the same cftype at the same time. I'd be inclined if necessary to just pass the struct file* in, rather than risk needing to change it to pass more parameters later. Paul