From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jamie Lokier Subject: Re: [PATCH] New System call unshare (try 2) Date: Thu, 13 Oct 2005 11:11:37 +0100 Message-ID: <20051013101137.GA22049@mail.shareable.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: chrisw@osdl.org, viro@ZenIV.linux.org.uk, nickpiggin@yahoo.com.au, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, akpm@osdl.org Return-path: Received: from mail.shareable.org ([81.29.64.88]:42722 "EHLO mail.shareable.org") by vger.kernel.org with ESMTP id S1750851AbVJMKLo (ORCPT ); Thu, 13 Oct 2005 06:11:44 -0400 To: Janak Desai Content-Disposition: inline In-Reply-To: Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org Janak Desai wrote: > + > +/* > + * Performs sanity checks on the flags passed to the unshare system > + * call. > + */ > +static inline int check_unshare_flags(unsigned long unshare_flags) After making the changes we talked about to the above function - it would make sense for clone() to call it too. Have the tests in one place, so both calls are consistent with each other, and will remain so. The atomic_read() parts are dependent on the call being unshare(), but the bit tests should be identical I think. -- Jamie