projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b51159
)
rmap: move label `out' to a better place
author
Huang Shijie
<shijie8@gmail.com>
Tue, 15 Dec 2009 01:58:51 +0000
(17:58 -0800)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Tue, 15 Dec 2009 16:53:16 +0000
(08:53 -0800)
When the code jumps to the `out', `referenced' is still zero. So there is
no need to check it.
Signed-off-by: Huang Shijie <shijie8@gmail.com>
Acked-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/rmap.c
patch
|
blob
|
history
diff --git
a/mm/rmap.c
b/mm/rmap.c
index
e032d96
..
1a0ee6e
100644
(file)
--- a/
mm/rmap.c
+++ b/
mm/rmap.c
@@
-388,9
+388,10
@@
static int page_referenced_one(struct page *page,
out_unmap:
(*mapcount)--;
pte_unmap_unlock(pte, ptl);
-out:
+
if (referenced)
*vm_flags |= vma->vm_flags;
+out:
return referenced;
}