Return-Path: Received: from mail-lf0-f67.google.com ([209.85.215.67]:35118 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753316AbcGGWIh (ORCPT ); Thu, 7 Jul 2016 18:08:37 -0400 Received: by mail-lf0-f67.google.com with SMTP id w130so2509679lfd.2 for ; Thu, 07 Jul 2016 15:08:36 -0700 (PDT) Date: Fri, 8 Jul 2016 01:08:31 +0300 From: Alexey Dobriyan To: agruenba@redhat.com, viro@zeniv.linux.org.uk Cc: linux-fsdevel@vger.kernel.org Subject: [PATCH] acl: 200% better uncached ACL markers Message-ID: <20160707220831.GD31678@p183.telecom.by> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: linux-fsdevel-owner@vger.kernel.org List-ID: OR is what really meant here, and it should be tiny little bit better because it clears CF and OF. gcc generates "add 1" with GENERIC_CPU. Signed-off-by: Alexey Dobriyan --- include/linux/fs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -581,7 +581,7 @@ struct posix_acl; static inline struct posix_acl * uncached_acl_sentinel(struct task_struct *task) { - return (void *)task + 1; + return (struct posix_acl *)((unsigned long)task | 1); } static inline bool