All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Hildenbrand <david@redhat.com>
To: Al Viro <viro@zeniv.linux.org.uk>
Cc: Matthew Wilcox <willy@infradead.org>,
	linux-mm@kvack.org, Kent Overstreet <kent.overstreet@gmail.com>,
	Johannes Weiner <hannes@cmpxchg.org>,
	linux-fsdevel@vger.kernel.org
Subject: Re: [RFC] pgflags_t
Date: Wed, 6 Oct 2021 17:47:59 +0200	[thread overview]
Message-ID: <514dfafb-6a98-65ff-a9a7-421bbc2a0cec@redhat.com> (raw)
In-Reply-To: <YV3E6Ym1+T6Tyq17@zeniv-ca.linux.org.uk>

On 06.10.21 17:46, Al Viro wrote:
> On Wed, Oct 06, 2021 at 05:32:39PM +0200, David Hildenbrand wrote:
> 
>> It feels to me like using __bitwise for access checks and then still
>> modifying the __bitwise fields randomly via a backdoor. But sure, if it
>> works, I'll be happy if we can use that.
> 
> __bitwise == "can't do anything other than bitwise operations without
> an explicit force-cast".  All there is to it.  Hell, the very first
> use had been for things like __le32 et.al., where the primitives
> very much do non-bitwise accesses.  They are known to be safe (==
> do the same thing regardless of the host endianness).  Internally
> they contain force-casts, precisely so that the caller wouldn't
> need to.

Thanks for clarifying that :)

-- 
Thanks,

David / dhildenb


  reply	other threads:[~2021-10-06 15:48 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-06 14:58 [RFC] pgflags_t Matthew Wilcox
2021-10-06 15:16 ` David Hildenbrand
2021-10-06 15:29   ` Matthew Wilcox
2021-10-06 15:22 ` Al Viro
2021-10-06 15:23   ` David Hildenbrand
2021-10-06 15:28     ` Al Viro
2021-10-06 15:32       ` David Hildenbrand
2021-10-06 15:46         ` Al Viro
2021-10-06 15:47           ` David Hildenbrand [this message]
2021-10-06 15:38   ` Matthew Wilcox
2021-10-06 15:48     ` Al Viro
2021-10-07 14:37 ` Vlastimil Babka
2021-10-07 14:48   ` Matthew Wilcox

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=514dfafb-6a98-65ff-a9a7-421bbc2a0cec@redhat.com \
    --to=david@redhat.com \
    --cc=hannes@cmpxchg.org \
    --cc=kent.overstreet@gmail.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=viro@zeniv.linux.org.uk \
    --cc=willy@infradead.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.