git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2847cf9
)
mm/rmap: calculate page offset when needed
author
Davidlohr Bueso
<dave@stgolabs.net>
Sat, 13 Dec 2014 00:55:04 +0000
(16:55 -0800)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Sat, 13 Dec 2014 20:42:46 +0000
(12:42 -0800)
Call page_to_pgoff() to get the page offset once we are sure we actually
need it, and any very obvious initial function checks have passed.
Trivial micro-optimization, and potentially save some cycles.
Signed-off-by: Davidlohr Bueso <dbueso@suse.de>
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 --cc
mm/rmap.c
Simple merge