From: Andreas Gruenbacher <agruenba@redhat.com>
To: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: Alexey Dobriyan <adobriyan@gmail.com>,
linux-fsdevel@vger.kernel.org,
Andreas Gruenbacher <agruenba@redhat.com>
Subject: [PATCH 2/4] posix_acl: Better uncached ACL markers
Date: Thu, 11 Aug 2016 23:55:38 +0200 [thread overview]
Message-ID: <1470952540-12768-3-git-send-email-agruenba@redhat.com> (raw)
In-Reply-To: <1470952540-12768-1-git-send-email-agruenba@redhat.com>
From: Alexey Dobriyan <adobriyan@gmail.com>
Instead of adding one to the pointer to set bit 0, use bit-or; this
produces minimally better code.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
---
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
next prev parent reply other threads:[~2016-08-11 21:55 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-11 21:55 [PATCH 0/4] POSIX ACL patches for 4.9 Andreas Gruenbacher
2016-08-11 21:55 ` [PATCH 1/4] posix_acl: Improve xattr fixup code Andreas Gruenbacher
2016-08-11 21:55 ` Andreas Gruenbacher [this message]
2016-08-11 21:55 ` [PATCH 3/4] posix_acl: get_acl: Cleanups Andreas Gruenbacher
2016-08-11 21:55 ` [PATCH 4/4] posix_acl: get_acl: Synchronize readers Andreas Gruenbacher
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1470952540-12768-3-git-send-email-agruenba@redhat.com \
--to=agruenba@redhat.com \
--cc=adobriyan@gmail.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=viro@zeniv.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).