Return-Path: Received: from mx1.redhat.com ([209.132.183.28]:49194 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933310AbdCLJL5 (ORCPT ); Sun, 12 Mar 2017 05:11:57 -0400 From: David Howells In-Reply-To: <20170312062941.862-1-ebiggers3@gmail.com> References: <20170312062941.862-1-ebiggers3@gmail.com> To: Eric Biggers Cc: dhowells@redhat.com, linux-fsdevel@vger.kernel.org, Al Viro , linux-kernel@vger.kernel.org, Eric Biggers Subject: Re: [PATCH v3] statx: optimize copy of struct statx to userspace MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <17225.1489309913.1@warthog.procyon.org.uk> Date: Sun, 12 Mar 2017 09:11:53 +0000 Message-ID: <17226.1489309913@warthog.procyon.org.uk> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Eric Biggers wrote: > +static int cp_statx(const struct kstat *stat, struct statx __user *buffer) > ... > + struct statx tmp; This function needs to be "noinline" as tmp is big. > - return statx_set_result(&stat, buffer); > + > + return cp_statx(&stat, buffer); Can you leave it as statx_set_result rather than renaming it to cp_statx? David