lkml.org 
[lkml]   [2017]   [Mar]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH v3] statx: optimize copy of struct statx to userspace
Date
Eric Biggers <ebiggers3@gmail.com> 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

\
 
 \ /
  Last update: 2017-03-12 10:12    [W:0.072 / U:0.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site