linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Hugh Dickins <hughd@google.com>
To: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: LKML <linux-kernel@vger.kernel.org>,
	linux-mm <linux-mm@kvack.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	Benjamin Herrenschmidt <benh@kernel.crashing.org>,
	Dave Hansen <dave@linux.vnet.ibm.com>,
	KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>,
	Paul Mundt <lethal@linux-sh.org>,
	Russell King <linux@arm.linux.org.uk>
Subject: Re: mm: convert vma->vm_flags to 64bit
Date: Sun, 17 Apr 2011 17:26:19 -0700 (PDT)	[thread overview]
Message-ID: <alpine.LSU.2.00.1104171649350.21405@sister.anvils> (raw)
In-Reply-To: <20110412151116.B50D.A69D9226@jp.fujitsu.com>

On Tue, 12 Apr 2011, KOSAKI Motohiro wrote:
> 
> Benjamin, Hugh, I hope to add your S-O-B to this one because you are original author. 
> Can I do?

Well, now you've fixed the mm/fremap.c omission, you're welcome to my
Acked-by: Hugh Dickins <hughd@google.com>

I happen not to shared Ben's aversion to unsigned long long, I just
don't really care one way or another on that; but I do get irritated by
obfuscatory types which we then have to cast or unfold all over the place,
I don't know if vm_flags_t would have been in that category or not.

You've made a few different choices than I did, okay: the only place
where it might be worth disagreeing with you, is on mm->def_flags:
I would rather make that an unsigned int than an unsigned long long,
to save 4 bytes on 64-bit (if it were moved) rather than waste 4 bytes
on 32-bit - in the unlikely event that someone adds a high VM_flag to
def_flags, I'd rather hope they would test its effect.  However,
it's every mm not every vma, so maybe not worth worrying about.

I am surprised that
#define VM_EXEC		0x00000004ULL
does not cause trouble for arch/arm/kernel/asm-offsets.c,
but you tried cross-building it which I never did.

Does your later addition of __nocast on vm_flags not make trouble
for the unsigned long casts in arch/arm/include/asm/cacheflush.h?
(And if it does not, then just what does __nocast do?)

Thanks for seeing this through,
Hugh

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

  parent reply	other threads:[~2011-04-18  0:26 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-12  6:10 KOSAKI Motohiro
2011-04-12  6:33 ` Andrew Morton
2011-04-12  7:12   ` KOSAKI Motohiro
2011-04-12 11:06     ` Alexey Dobriyan
2011-04-12 11:11       ` Alexey Dobriyan
2011-04-12 22:07       ` Benjamin Herrenschmidt
2011-04-13  0:13         ` KOSAKI Motohiro
2011-04-13  6:44           ` Alexey Dobriyan
2011-04-13  7:00             ` Benjamin Herrenschmidt
2011-04-13  7:29               ` Russell King - ARM Linux
2011-04-13  8:56                 ` Benjamin Herrenschmidt
2011-04-13  8:34               ` KOSAKI Motohiro
2011-04-13  7:04             ` KOSAKI Motohiro
2011-04-12 23:41       ` KOSAKI Motohiro
2011-04-13  2:19         ` [PATCH 1/3] mm: add __nocast attribute to vm_flags KOSAKI Motohiro
2011-04-13  2:20           ` [PATCH 2/3] fremap: convert vm_flags to unsigned long long KOSAKI Motohiro
2011-04-13  2:21           ` [PATCH 3/3] procfs: " KOSAKI Motohiro
2011-04-12 20:30   ` mm: convert vma->vm_flags to 64bit Russell King - ARM Linux
2011-04-18  0:26 ` Hugh Dickins [this message]
2011-04-18  1:21   ` KOSAKI Motohiro
2011-04-18  1:45   ` Benjamin Herrenschmidt
2011-04-18  3:34     ` KOSAKI Motohiro
2011-11-10  4:09 ` Nai Xia
2011-11-10  4:49   ` David Rientjes
2011-11-11  8:52     ` Russell King - ARM Linux
2011-11-10 17:22   ` KOSAKI Motohiro
2011-11-10 21:12     ` Benjamin Herrenschmidt
2011-11-10 21:49       ` KOSAKI Motohiro
2011-11-11  8:42         ` Russell King - ARM Linux
2011-11-11  2:09       ` Hugh Dickins
2011-11-11  4:31         ` Benjamin Herrenschmidt
2011-11-11  8:38           ` Nai Xia

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=alpine.LSU.2.00.1104171649350.21405@sister.anvils \
    --to=hughd@google.com \
    --cc=akpm@linux-foundation.org \
    --cc=benh@kernel.crashing.org \
    --cc=dave@linux.vnet.ibm.com \
    --cc=kamezawa.hiroyu@jp.fujitsu.com \
    --cc=kosaki.motohiro@jp.fujitsu.com \
    --cc=lethal@linux-sh.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=linux@arm.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