Skip to contentSkip to conversation

acl: 200% better uncached ACL markers

PATCH New Alexey Dobriyan 1 participant 1 message Jul 7, 2016 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 acl: 200% better uncached ACL markers

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.

---

 include/linux/fs.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/fs.h +1 -1
@@ -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