From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com ([209.132.183.28]:46476 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752161AbcHKVzr (ORCPT ); Thu, 11 Aug 2016 17:55:47 -0400 From: Andreas Gruenbacher To: Alexander Viro Cc: Alexey Dobriyan , linux-fsdevel@vger.kernel.org, Andreas Gruenbacher Subject: [PATCH 2/4] posix_acl: Better uncached ACL markers Date: Thu, 11 Aug 2016 23:55:38 +0200 Message-Id: <1470952540-12768-3-git-send-email-agruenba@redhat.com> In-Reply-To: <1470952540-12768-1-git-send-email-agruenba@redhat.com> References: <1470952540-12768-1-git-send-email-agruenba@redhat.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: From: Alexey Dobriyan Instead of adding one to the pointer to set bit 0, use bit-or; this produces minimally better code. Signed-off-by: Alexey Dobriyan Signed-off-by: Andreas Gruenbacher --- include/linux/fs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/fs.h b/include/linux/fs.h index 3523bf6..64fc2ee 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -578,7 +578,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 -- 2.7.4