nommu: struct vm_region's vm_usage count need not be atomic
authorDavid Howells <dhowells@redhat.com>
Sat, 16 Jan 2010 01:01:33 +0000 (17:01 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 16 Jan 2010 20:15:40 +0000 (12:15 -0800)
commit1e2ae599d37e60958c03ca5e46b1f657619a30cd
tree0a0c9ff0370fbefd4eb8fe3a44106880c1aae8cb
parented5e5894b234ce4793d78078c026915b853e0678
nommu: struct vm_region's vm_usage count need not be atomic

The vm_usage count field in struct vm_region does not need to be atomic as
it's only even modified whilst nommu_region_sem is write locked.

Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Al Viro <viro@zeniv.linux.org.uk>
Cc: Greg Ungerer <gerg@snapgear.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/mm_types.h
mm/nommu.c