[PATCH] acl: 200% better uncached ACL markers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <adobriyan@xxxxxxxxx>
---

 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
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux