Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753584AbaAQWwm (ORCPT ); Fri, 17 Jan 2014 17:52:42 -0500 Received: from relay1.sgi.com ([192.48.179.29]:33275 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751177AbaAQWwi (ORCPT ); Fri, 17 Jan 2014 17:52:38 -0500 Date: Fri, 17 Jan 2014 16:52:50 -0600 From: Alex Thorlton To: Oleg Nesterov Cc: linux-kernel@vger.kernel.org, Ingo Molnar , Peter Zijlstra , Andrew Morton , "Kirill A. Shutemov" , Benjamin Herrenschmidt , Rik van Riel , Naoya Horiguchi , "Eric W. Biederman" , Andy Lutomirski , Al Viro , Kees Cook , Andrea Arcangeli Subject: Re: [RFC PATCHv2 1/2] Add mm flag to control THP Message-ID: <20140117225250.GA17626@sgi.com> References: <1bc8f911363af956b37d8ea415d734f3191f1c78.1389905087.git.athorlton@sgi.com> <20140117200923.GA15234@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140117200923.GA15234@redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 17, 2014 at 09:09:23PM +0100, Oleg Nesterov wrote: > On 01/16, Alex Thorlton wrote: > > > > + case PR_GET_THP_DISABLE: > > + error = put_user(test_bit(MMF_THP_DISABLE, > > + &me->mm->flags), > > + (int __user *) arg2); > > + break; > > Do we really want put_user? > > error = test_bit(MMF_THP_DISABLE); > > can work too and looks simpler (and to me simpler to use in userspace). That makes sense. I'll change that; definitely easier to use from userspace that way. - Alex -- 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/