From: "J. Bruce Fields" Subject: Re: [PATCH v7 03/17] locks: remove "inline" qualifier from fl_link manipulation functions Date: Sun, 23 Mar 2014 15:55:26 -0400 Message-ID: <20140323195526.GB6103@fieldses.org> References: <1395261961-10855-1-git-send-email-jlayton@redhat.com> <1395261961-10855-4-git-send-email-jlayton@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: viro@ZenIV.linux.org.uk, linux-fsdevel@vger.kernel.org To: Jeff Layton Return-path: Received: from fieldses.org ([174.143.236.118]:47108 "EHLO fieldses.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750914AbaCWTz2 (ORCPT ); Sun, 23 Mar 2014 15:55:28 -0400 Content-Disposition: inline In-Reply-To: <1395261961-10855-4-git-send-email-jlayton@redhat.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Wed, Mar 19, 2014 at 04:45:47PM -0400, Jeff Layton wrote: > It's best to let the compiler decide that. Acked-by: J. Bruce Fields > > Reported-by: Stephen Rothwell > Signed-off-by: Jeff Layton > --- > fs/locks.c | 12 ++++-------- > 1 file changed, 4 insertions(+), 8 deletions(-) > > diff --git a/fs/locks.c b/fs/locks.c > index 5e28612120c2..049a14402ee4 100644 > --- a/fs/locks.c > +++ b/fs/locks.c > @@ -511,8 +511,7 @@ static int posix_same_owner(struct file_lock *fl1, struct file_lock *fl2) > } > > /* Must be called with the i_lock held! */ > -static inline void > -locks_insert_global_locks(struct file_lock *fl) > +static void locks_insert_global_locks(struct file_lock *fl) > { > lg_local_lock(&file_lock_lglock); > fl->fl_link_cpu = smp_processor_id(); > @@ -521,8 +520,7 @@ locks_insert_global_locks(struct file_lock *fl) > } > > /* Must be called with the i_lock held! */ > -static inline void > -locks_delete_global_locks(struct file_lock *fl) > +static void locks_delete_global_locks(struct file_lock *fl) > { > /* > * Avoid taking lock if already unhashed. This is safe since this check > @@ -544,14 +542,12 @@ posix_owner_key(struct file_lock *fl) > return (unsigned long)fl->fl_owner; > } > > -static inline void > -locks_insert_global_blocked(struct file_lock *waiter) > +static void locks_insert_global_blocked(struct file_lock *waiter) > { > hash_add(blocked_hash, &waiter->fl_link, posix_owner_key(waiter)); > } > > -static inline void > -locks_delete_global_blocked(struct file_lock *waiter) > +static void locks_delete_global_blocked(struct file_lock *waiter) > { > hash_del(&waiter->fl_link); > } > -- > 1.8.5.3 >